CLending
Verified contract
Implementation
Active on
Ethereum with 2 txns
Storage
Map
Table
Raw
Constants and immutables
3
Slot
XX
32
30
28
26
24
22
20
18
16
14
12
10
8
6
4
2
0
-
variable spans 49 additional slots
-
variable spans 48 additional slots
-
variable spans 51 additional slots
Balances ($0.00)
No balances found for "CLending"
Transactions
Txn hash | Method | Block | Age | From | To | Value (ETH) | Fee (ETH) |
---|---|---|---|---|---|---|---|
| 15308042 | 2 years ago | | | 0 | 0.00042961367 | |
| 15308038 | 2 years ago | | | 0 | 0.00039889494 |
ABI
ABI objects
Getter at block 20904078
CORE_TOKEN() view returns (address)
0x62359ed7505efc61ff1d56fef82158ccaffa23d7
DAI() view returns (address)
0x6b175474e89094c44da98b954eedeac495271d0f
coreDAO() view returns (address)
0x0000000000000000000000000000000000000000
coreDAOTreasury() view returns (address)
0x0000000000000000000000000000000000000000
loanDefaultThresholdPercent() view returns (uint256)
0
owner() view returns (address)
0x0000000000000000000000000000000000000000
yearlyPercentInterest() view returns (uint256)
0
Read-only
accruedInterest(address user) view returns (uint256)
collaterabilityOfToken(address) view returns (uint256)
debtorSummary(address) view returns (uint256 timeLastBorrow, uint256 amountDAIBorrowed, uint256 pendingInterests)
isAngel(address) view returns (bool)
liquidationBeneficiaryOfToken(address) view returns (address)
quantityOfTokenForValueInDAI(uint256 quantityOfDAI, uint256 tokenCollateralAbility) pure returns (uint256)
userCollateralValue(address user) view returns (uint256 collateral)
userCollaterals(address user) view returns (struct Collateral[])
userTotalDebt(address user) view returns (uint256)
State-modifying
Events addCollateral(address token, uint256 amount)
addCollateralAndBorrow(address tokenCollateral, uint256 amountCollateral, uint256 amountBorrow)
addNewToken(address token, address liquidationBeneficiary, uint256 collaterabilityInDAI, uint256 decimals)
borrow(uint256 amount)
changeLoanTerms(uint256 _yearlyPercentInterest, uint256 _loanDefaultThresholdPercent)
editAngels(address _angel, bool _isAngel)
editTokenCollaterability(address token, uint256 newCollaterability)
editTokenLiquidationBeneficiary(address token, address newBeneficiary)
godIsDead()
initialize(address _coreDAOTreasury, address _daoToken, uint256 _yearlyPercentInterest, uint256 _loanDefaultThresholdPercent, uint256 _coreTokenCollaterability)
intervenienteHomine()
liquidateDelinquent(address user) returns (uint256 totalDebt, uint256 totalCollateral)
reclaimAllCollateral()
renounceOwnership()
repayLoan(address token, uint256 amount)
transferOwnership(address newOwner)
CollateralAdded(address token, uint256 amount, uint256 timestamp, address addedBy)
CollateralReclaimed(address token, uint256 amount, uint256 timestamp, address byWho)
InterestPaid(address paidInToken, uint256 interestAmountInDAI, uint256 timestamp, address paidBy)
Liquidation(address userWhoWasLiquidated, uint256 totalCollateralValueLiquidated, uint256 timestamp, address caller)
LoanTaken(uint256 amount, uint256 timestamp, address takenBy)
LoanTermsChanged(uint256 previousYearlyInterst, uint256 newYearlyInterst, uint256 previousLoanDefaultThresholdPercent, uint256 newLoanDefaultThresholdPercent, uint256 timestamp, address changedBy)
NewTokenAdded(address token, uint256 collaterability, address liquidationBeneficiary, uint256 timestamp, address addedBy)
OwnershipTransferred(address indexed previousOwner, address indexed newOwner)
Repayment(address token, uint256 amountTokens, uint256 timestamp, address addedBy)
TokenCollaterabilityChanged(address token, uint256 oldCollaterability, uint256 newCollaterability, uint256 timestamp, address changedBy)
TokenLiquidationBeneficiaryChanged(address token, address oldBeneficiary, address newBeneficiary, uint256 timestamp, address changedBy)
This contract contains no constructor objects.
receive()
This contract contains no error objects.