Verified contractPartial
CErc20
Address0x6c8c6b02e7b2be14d4fa6022dfd6d75921d90e4e
- Balance
0 ETH
- Transactions
50,549
- Compiler
solc 0.5.8
- Same code
6 more contracts
Details
- Compiler
- solc 0.5.8+commit.23d335f2
- Language
- solidity
- Optimization
- Yes, 200 runs
- EVM version
- petersburg
- License
- Not stated
- Match
- Partialcreation code: yes, runtime code: yes
- Verified on Sourcify
- Created in block
- 7,710,735
- Creation transaction
- 0xb92ea2ddcd…d375155097
- Main copy (most transactions)
- 0x39aa39c0…7d5e7563
Read24
- name() → (string)
- reserveFactorMantissa() → (uint256)
- totalSupply() → (uint256)
- exchangeRateStored() → (uint256)
- pendingAdmin() → (address)
- decimals() → (uint256)
- getCash() → (uint256)
- totalBorrows() → (uint256)
- comptroller() → (address)
- initialExchangeRateMantissa() → (uint256)
- accrualBlockNumber() → (uint256)
- underlying() → (address)
- balanceOf(address) → (uint256)
- totalReserves() → (uint256)
- symbol() → (string)
- borrowBalanceStored(address) → (uint256)
- borrowIndex() → (uint256)
- supplyRatePerBlock() → (uint256)
- getAccountSnapshot(address) → (uint256,uint256,uint256,uint256)
- allowance(address,address) → (uint256)
- interestRateModel() → (address)
- admin() → (address)
- borrowRatePerBlock() → (uint256)
- isCToken() → (bool)
Write22
- approve(address,uint256) → (bool)
- repayBorrow(uint256) → (uint256)
- borrowBalanceCurrent(address) → (uint256)
- transferFrom(address,address,uint256) → (bool)
- repayBorrowBehalf(address,uint256) → (uint256)
- balanceOfUnderlying(address) → (uint256)
- _setComptroller(address) → (uint256)
- _reduceReserves(uint256) → (uint256)
- totalBorrowsCurrent() → (uint256)
- redeemUnderlying(uint256) → (uint256)
- mint(uint256) → (uint256)
- accrueInterest() → (uint256)
- transfer(address,uint256) → (bool)
- seize(address,address,uint256) → (uint256)
- _setPendingAdmin(address) → (uint256)
- exchangeRateCurrent() → (uint256)
- borrow(uint256) → (uint256)
- redeem(uint256) → (uint256)
- _acceptAdmin() → (uint256)
- _setInterestRateModel(address) → (uint256)
- liquidateBorrow(address,uint256,address) → (uint256)
- _setReserveFactor(uint256) → (uint256)
Events15
- AccrueInterest(uint256,uint256,uint256)
- Mint(address,uint256,uint256)
- Redeem(address,uint256,uint256)
- Borrow(address,uint256,uint256,uint256)
- RepayBorrow(address,address,uint256,uint256,uint256)
- LiquidateBorrow(address,address,uint256,address,uint256)
- NewPendingAdmin(address,address)
- NewAdmin(address,address)
- NewComptroller(address,address)
- NewMarketInterestRateModel(address,address)
- NewReserveFactor(uint256,uint256)
- ReservesReduced(address,uint256,uint256)
- Failure(uint256,uint256,uint256)
- Transfer(address,address,uint256)
- Approval(address,address,uint256)
ABI as JSON
[
{
"name": "name",
"type": "function",
"inputs": [],
"outputs": [
{
"name": "",
"type": "string"
}
],
"payable": false,
"constant": true,
"stateMutability": "view"
},
{
"name": "approve",
"type": "function",
"inputs": [
{
"name": "spender",
"type": "address"
},
{
"name": "amount",
"type": "uint256"
}
],
"outputs": [
{
"name": "",
"type": "bool"
}
],
"payable": false,
"constant": false,
"stateMutability": "nonpayable"
},
{
"name": "repayBorrow",
"type": "function",
"inputs": [
{
"name": "repayAmount",
"type": "uint256"
}
],
"outputs": [
{
"name": "",
"type": "uint256"
}
],
"payable": false,
"constant": false,
"stateMutability": "nonpayable"
},
{
"name": "reserveFactorMantissa",
"type": "function",
"inputs": [],
"outputs": [
{
"name": "",
"type": "uint256"
}
],
"payable": false,
"constant": true,
"stateMutability": "view"
},
{
"name": "borrowBalanceCurrent",
"type": "function",
"inputs": [
{
"name": "account",
"type": "address"
}
],
"outputs": [
{
"name": "",
"type": "uint256"
}
],
"payable": false,
"constant": false,
"stateMutability": "nonpayable"
},
{
"name": "totalSupply",
"type": "function",
"inputs": [],
"outputs": [
{
"name": "",
"type": "uint256"
}
],
"payable": false,
"constant": true,
"stateMutability": "view"
},
{
"name": "exchangeRateStored",
"type": "function",
"inputs": [],
"outputs": [
{
"name": "",
"type": "uint256"
}
],
"payable": false,
"constant": true,
"stateMutability": "view"
},
{
"name": "transferFrom",
"type": "function",
"inputs": [
{
"name": "src",
"type": "address"
},
{
"name": "dst",
"type": "address"
},
{
"name": "amount",
"type": "uint256"
}
],
"outputs": [
{
"name": "",
"type": "bool"
}
],
"payable": false,
"constant": false,
"stateMutability": "nonpayable"
},
{
"name": "repayBorrowBehalf",
"type": "function",
"inputs": [
{
"name": "borrower",
"type": "address"
},
{
"name": "repayAmount",
"type": "uint256"
}
],
"outputs": [
{
"name": "",
"type": "uint256"
}
],
"payable": false,
"constant": false,
"stateMutability": "nonpayable"
},
{
"name": "pendingAdmin",
"type": "function",
"inputs": [],
"outputs": [
{
"name": "",
"type": "address"
}
],
"payable": false,
"constant": true,
"stateMutability": "view"
},
{
"name": "decimals",
"type": "function",
"inputs": [],
"outputs": [
{
"name": "",
"type": "uint256"
}
],
"payable": false,
"constant": true,
"stateMutability": "view"
},
{
"name": "balanceOfUnderlying",
"type": "function",
"inputs": [
{
"name": "owner",
"type": "address"
}
],
"outputs": [
{
"name": "",
"type": "uint256"
}
],
"payable": false,
"constant": false,
"stateMutability": "nonpayable"
},
{
"name": "getCash",
"type": "function",
"inputs": [],
"outputs": [
{
"name": "",
"type": "uint256"
}
],
"payable": false,
"constant": true,
"stateMutability": "view"
},
{
"name": "_setComptroller",
"type": "function",
"inputs": [
{
"name": "newComptroller",
"type": "address"
}
],
"outputs": [
{
"name": "",
"type": "uint256"
}
],
"payable": false,
"constant": false,
"stateMutability": "nonpayable"
},
{
"name": "totalBorrows",
"type": "function",
"inputs": [],
"outputs": [
{
"name": "",
"type": "uint256"
}
],
"payable": false,
"constant": true,
"stateMutability": "view"
},
{
"name": "comptroller",
"type": "function",
"inputs": [],
"outputs": [
{
"name": "",
"type": "address"
}
],
"payable": false,
"constant": true,
"stateMutability": "view"
},
{
"name": "_reduceReserves",
"type": "function",
"inputs": [
{
"name": "reduceAmount",
"type": "uint256"
}
],
"outputs": [
{
"name": "",
"type": "uint256"
}
],
"payable": false,
"constant": false,
"stateMutability": "nonpayable"
},
{
"name": "initialExchangeRateMantissa",
"type": "function",
"inputs": [],
"outputs": [
{
"name": "",
"type": "uint256"
}
],
"payable": false,
"constant": true,
"stateMutability": "view"
},
{
"name": "accrualBlockNumber",
"type": "function",
"inputs": [],
"outputs": [
{
"name": "",
"type": "uint256"
}
],
"payable": false,
"constant": true,
"stateMutability": "view"
},
{
"name": "underlying",
"type": "function",
"inputs": [],
"outputs": [
{
"name": "",
"type": "address"
}
],
"payable": false,
"constant": true,
"stateMutability": "view"
},
{
"name": "balanceOf",
"type": "function",
"inputs": [
{
"name": "owner",
"type": "address"
}
],
"outputs": [
{
"name": "",
"type": "uint256"
}
],
"payable": false,
"constant": true,
"stateMutability": "view"
},
{
"name": "totalBorrowsCurrent",
"type": "function",
"inputs": [],
"outputs": [
{
"name": "",
"type": "uint256"
}
],
"payable": false,
"constant": false,
"stateMutability": "nonpayable"
},
{
"name": "redeemUnderlying",
"type": "function",
"inputs": [
{
"name": "redeemAmount",
"type": "uint256"
}
],
"outputs": [
{
"name": "",
"type": "uint256"
}
],
"payable": false,
"constant": false,
"stateMutability": "nonpayable"
},
{
"name": "totalReserves",
"type": "function",
"inputs": [],
"outputs": [
{
"name": "",
"type": "uint256"
}
],
"payable": false,
"constant": true,
"stateMutability": "view"
},
{
"name": "symbol",
"type": "function",
"inputs": [],
"outputs": [
{
"name": "",
"type": "string"
}
],
"payable": false,
"constant": true,
"stateMutability": "view"
},
{
"name": "borrowBalanceStored",
"type": "function",
"inputs": [
{
"name": "account",
"type": "address"
}
],
"outputs": [
{
"name": "",
"type": "uint256"
}
],
"payable": false,
"constant": true,
"stateMutability": "view"
},
{
"name": "mint",
"type": "function",
"inputs": [
{
"name": "mintAmount",
"type": "uint256"
}
],
"outputs": [
{
"name": "",
"type": "uint256"
}
],
"payable": false,
"constant": false,
"stateMutability": "nonpayable"
},
{
"name": "accrueInterest",
"type": "function",
"inputs": [],
"outputs": [
{
"name": "",
"type": "uint256"
}
],
"payable": false,
"constant": false,
"stateMutability": "nonpayable"
},
{
"name": "transfer",
"type": "function",
"inputs": [
{
"name": "dst",
"type": "address"
},
{
"name": "amount",
"type": "uint256"
}
],
"outputs": [
{
"name": "",
"type": "bool"
}
],
"payable": false,
"constant": false,
"stateMutability": "nonpayable"
},
{
"name": "borrowIndex",
"type": "function",
"inputs": [],
"outputs": [
{
"name": "",
"type": "uint256"
}
],
"payable": false,
"constant": true,
"stateMutability": "view"
},
{
"name": "supplyRatePerBlock",
"type": "function",
"inputs": [],
"outputs": [
{
"name": "",
"type": "uint256"
}
],
"payable": false,
"constant": true,
"stateMutability": "view"
},
{
"name": "seize",
"type": "function",
"inputs": [
{
"name": "liquidator",
"type": "address"
},
{
"name": "borrower",
"type": "address"
},
{
"name": "seizeTokens",
"type": "uint256"
}
],
"outputs": [
{
"name": "",
"type": "uint256"
}
],
"payable": false,
"constant": false,
"stateMutability": "nonpayable"
},
{
"name": "_setPendingAdmin",
"type": "function",
"inputs": [
{
"name": "newPendingAdmin",
"type": "address"
}
],
"outputs": [
{
"name": "",
"type": "uint256"
}
],
"payable": false,
"constant": false,
"stateMutability": "nonpayable"
},
{
"name": "exchangeRateCurrent",
"type": "function",
"inputs": [],
"outputs": [
{
"name": "",
"type": "uint256"
}
],
"payable": false,
"constant": false,
"stateMutability": "nonpayable"
},
{
"name": "getAccountSnapshot",
"type": "function",
"inputs": [
{
"name": "account",
"type": "address"
}
],
"outputs": [
{
"name": "",
"type": "uint256"
},
{
"name": "",
"type": "uint256"
},
{
"name": "",
"type": "uint256"
},
{
"name": "",
"type": "uint256"
}
],
"payable": false,
"constant": true,
"stateMutability": "view"
},
{
"name": "borrow",
"type": "function",
"inputs": [
{
"name": "borrowAmount",
"type": "uint256"
}
],
"outputs": [
{
"name": "",
"type": "uint256"
}
],
"payable": false,
"constant": false,
"stateMutability": "nonpayable"
},
{
"name": "redeem",
"type": "function",
"inputs": [
{
"name": "redeemTokens",
"type": "uint256"
}
],
"outputs": [
{
"name": "",
"type": "uint256"
}
],
"payable": false,
"constant": false,
"stateMutability": "nonpayable"
},
{
"name": "allowance",
"type": "function",
"inputs": [
{
"name": "owner",
"type": "address"
},
{
"name": "spender",
"type": "address"
}
],
"outputs": [
{
"name": "",
"type": "uint256"
}
],
"payable": false,
"constant": true,
"stateMutability": "view"
},
{
"name": "_acceptAdmin",
"type": "function",
"inputs": [],
"outputs": [
{
"name": "",
"type": "uint256"
}
],
"payable": false,
"constant": false,
"stateMutability": "nonpayable"
},
{
"name": "_setInterestRateModel",
"type": "function",
"inputs": [
{
"name": "newInterestRateModel",
"type": "address"
}
],
"outputs": [
{
"name": "",
"type": "uint256"
}
],
"payable": false,
"constant": false,
"stateMutability": "nonpayable"
},
{
"name": "interestRateModel",
"type": "function",
"inputs": [],
"outputs": [
{
"name": "",
"type": "address"
}
],
"payable": false,
"constant": true,
"stateMutability": "view"
},
{
"name": "liquidateBorrow",
"type": "function",
"inputs": [
{
"name": "borrower",
"type": "address"
},
{
"name": "repayAmount",
"type": "uint256"
},
{
"name": "cTokenCollateral",
"type": "address"
}
],
"outputs": [
{
"name": "",
"type": "uint256"
}
],
"payable": false,
"constant": false,
"stateMutability": "nonpayable"
},
{
"name": "admin",
"type": "function",
"inputs": [],
"outputs": [
{
"name": "",
"type": "address"
}
],
"payable": false,
"constant": true,
"stateMutability": "view"
},
{
"name": "borrowRatePerBlock",
"type": "function",
"inputs": [],
"outputs": [
{
"name": "",
"type": "uint256"
}
],
"payable": false,
"constant": true,
"stateMutability": "view"
},
{
"name": "_setReserveFactor",
"type": "function",
"inputs": [
{
"name": "newReserveFactorMantissa",
"type": "uint256"
}
],
"outputs": [
{
"name": "",
"type": "uint256"
}
],
"payable": false,
"constant": false,
"stateMutability": "nonpayable"
},
{
"name": "isCToken",
"type": "function",
"inputs": [],
"outputs": [
{
"name": "",
"type": "bool"
}
],
"payable": false,
"constant": true,
"stateMutability": "view"
},
{
"type": "constructor",
"inputs": [
{
"name": "underlying_",
"type": "address"
},
{
"name": "comptroller_",
"type": "address"
},
{
"name": "interestRateModel_",
"type": "address"
},
{
"name": "initialExchangeRateMantissa_",
"type": "uint256"
},
{
"name": "name_",
"type": "string"
},
{
"name": "symbol_",
"type": "string"
},
{
"name": "decimals_",
"type": "uint256"
}
],
"payable": false,
"stateMutability": "nonpayable"
},
{
"name": "AccrueInterest",
"type": "event",
"inputs": [
{
"name": "interestAccumulated",
"type": "uint256",
"indexed": false
},
{
"name": "borrowIndex",
"type": "uint256",
"indexed": false
},
{
"name": "totalBorrows",
"type": "uint256",
"indexed": false
}
],
"anonymous": false
},
{
"name": "Mint",
"type": "event",
"inputs": [
{
"name": "minter",
"type": "address",
"indexed": false
},
{
"name": "mintAmount",
"type": "uint256",
"indexed": false
},
{
"name": "mintTokens",
"type": "uint256",
"indexed": false
}
],
"anonymous": false
},
{
"name": "Redeem",
"type": "event",
"inputs": [
{
"name": "redeemer",
"type": "address",
"indexed": false
},
{
"name": "redeemAmount",
"type": "uint256",
"indexed": false
},
{
"name": "redeemTokens",
"type": "uint256",
"indexed": false
}
],
"anonymous": false
},
{
"name": "Borrow",
"type": "event",
"inputs": [
{
"name": "borrower",
"type": "address",
"indexed": false
},
{
"name": "borrowAmount",
"type": "uint256",
"indexed": false
},
{
"name": "accountBorrows",
"type": "uint256",
"indexed": false
},
{
"name": "totalBorrows",
"type": "uint256",
"indexed": false
}
],
"anonymous": false
},
{
"name": "RepayBorrow",
"type": "event",
"inputs": [
{
"name": "payer",
"type": "address",
"indexed": false
},
{
"name": "borrower",
"type": "address",
"indexed": false
},
{
"name": "repayAmount",
"type": "uint256",
"indexed": false
},
{
"name": "accountBorrows",
"type": "uint256",
"indexed": false
},
{
"name": "totalBorrows",
"type": "uint256",
"indexed": false
}
],
"anonymous": false
},
{
"name": "LiquidateBorrow",
"type": "event",
"inputs": [
{
"name": "liquidator",
"type": "address",
"indexed": false
},
{
"name": "borrower",
"type": "address",
"indexed": false
},
{
"name": "repayAmount",
"type": "uint256",
"indexed": false
},
{
"name": "cTokenCollateral",
"type": "address",
"indexed": false
},
{
"name": "seizeTokens",
"type": "uint256",
"indexed": false
}
],
"anonymous": false
},
{
"name": "NewPendingAdmin",
"type": "event",
"inputs": [
{
"name": "oldPendingAdmin",
"type": "address",
"indexed": false
},
{
"name": "newPendingAdmin",
"type": "address",
"indexed": false
}
],
"anonymous": false
},
{
"name": "NewAdmin",
"type": "event",
"inputs": [
{
"name": "oldAdmin",
"type": "address",
"indexed": false
},
{
"name": "newAdmin",
"type": "address",
"indexed": false
}
],
"anonymous": false
},
{
"name": "NewComptroller",
"type": "event",
"inputs": [
{
"name": "oldComptroller",
"type": "address",
"indexed": false
},
{
"name": "newComptroller",
"type": "address",
"indexed": false
}
],
"anonymous": false
},
{
"name": "NewMarketInterestRateModel",
"type": "event",
"inputs": [
{
"name": "oldInterestRateModel",
"type": "address",
"indexed": false
},
{
"name": "newInterestRateModel",
"type": "address",
"indexed": false
}
],
"anonymous": false
},
{
"name": "NewReserveFactor",
"type": "event",
"inputs": [
{
"name": "oldReserveFactorMantissa",
"type": "uint256",
"indexed": false
},
{
"name": "newReserveFactorMantissa",
"type": "uint256",
"indexed": false
}
],
"anonymous": false
},
{
"name": "ReservesReduced",
"type": "event",
"inputs": [
{
"name": "admin",
"type": "address",
"indexed": false
},
{
"name": "reduceAmount",
"type": "uint256",
"indexed": false
},
{
"name": "newTotalReserves",
"type": "uint256",
"indexed": false
}
],
"anonymous": false
},
{
"name": "Failure",
"type": "event",
"inputs": [
{
"name": "error",
"type": "uint256",
"indexed": false
},
{
"name": "info",
"type": "uint256",
"indexed": false
},
{
"name": "detail",
"type": "uint256",
"indexed": false
}
],
"anonymous": false
},
{
"name": "Transfer",
"type": "event",
"inputs": [
{
"name": "from",
"type": "address",
"indexed": true
},
{
"name": "to",
"type": "address",
"indexed": true
},
{
"name": "amount",
"type": "uint256",
"indexed": false
}
],
"anonymous": false
},
{
"name": "Approval",
"type": "event",
"inputs": [
{
"name": "owner",
"type": "address",
"indexed": true
},
{
"name": "spender",
"type": "address",
"indexed": true
},
{
"name": "amount",
"type": "uint256",
"indexed": false
}
],
"anonymous": false
}
]Source code and metadata: Sourcify.
The source code belongs to the authors of the contract.