mirror of
https://github.com/Instadapp/smart-contract.git
synced 2024-07-29 22:08:07 +00:00
removed read functions
This commit is contained in:
parent
821eee499b
commit
c5d5176923
|
@ -102,29 +102,6 @@ contract Helpers is DSMath {
|
|||
cEthAdd = 0x4Ddc2D193948926D02f9B1fE9e1daa0718270ED5;
|
||||
}
|
||||
|
||||
// Need to check at the end
|
||||
function exchangeRate(address cERC20) public returns (uint exchangeRateMantissa) {
|
||||
CTokenInterface cToken = CTokenInterface(cERC20);
|
||||
exchangeRateMantissa = cToken.exchangeRateCurrent();
|
||||
}
|
||||
|
||||
function getCash(address cERC20) public view returns (uint cash) {
|
||||
CTokenInterface cToken = CTokenInterface(cERC20);
|
||||
cash = cToken.getCash();
|
||||
}
|
||||
|
||||
// Need to check at the end
|
||||
function totalBorrow(address cERC20) public returns (uint borrows) {
|
||||
CTokenInterface cToken = CTokenInterface(cERC20);
|
||||
borrows = cToken.totalBorrowsCurrent();
|
||||
}
|
||||
|
||||
// Need to check at the end
|
||||
function borrowBalance(address user, address cERC20) public returns (uint borrowAmt) {
|
||||
CTokenInterface cToken = CTokenInterface(cERC20);
|
||||
borrowAmt = cToken.borrowBalanceCurrent(user);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user