mirror of
https://github.com/Instadapp/smart-contract.git
synced 2024-07-29 22:08:07 +00:00
Code cleanup.
This commit is contained in:
parent
d3c16d367f
commit
cd9849ade6
|
@ -109,22 +109,6 @@ contract Helpers is DSMath {
|
|||
ude = 0x09cabEC1eAd1c0Ba254B09efb3EE13841712bE14;
|
||||
}
|
||||
|
||||
/**
|
||||
* @dev get onchain ethereum price
|
||||
*/
|
||||
function getRate() public view returns (uint ethrate) {
|
||||
ethrate = TubInterface(getSaiTubAddress()).per();
|
||||
}
|
||||
|
||||
/**
|
||||
* @dev get CDP owner by CDP IDs
|
||||
*/
|
||||
function getCDPOwner(uint cdpNum) public view returns (address lad) {
|
||||
bytes32 cup = bytes32(cdpNum);
|
||||
TubInterface tub = TubInterface(getSaiTubAddress());
|
||||
(lad,,,) = tub.cups(cup);
|
||||
}
|
||||
|
||||
/**
|
||||
* @dev get CDP bytes by CDP ID
|
||||
*/
|
||||
|
|
Loading…
Reference in New Issue
Block a user