CErc20

Verified contract

Implementation

Active on Base with 0 txns
Deployed by via 0xf94ec0d2 at 19947726
Slot
32
30
28
26
24
22
20
18
16
14
12
10
8
6
4
2
0
4 additional variables

No balances found for "CErc20"

No transactions found for "CErc20"


Functions
Getter at block 22940182
accrualBlockTimestamp(view returns (uint256)
0
admin(view returns (address)
0x0000000000000000000000000000000000000000
borrowIndex(view returns (uint256)
0
 
borrowRatePerBlock(view returns (uint256)
comptroller(view returns (address)
0x0000000000000000000000000000000000000000
decimals(view returns (uint8)
0
discountRateMantissa(view returns (uint256)
1000000000000000000
exchangeRateStored(view returns (uint256)
0
getCash(view returns (uint256)
0
interestRateModel(view returns (address)
0x0000000000000000000000000000000000000000
isCEther(pure returns (bool)
false
isCEtherDeprecated(view returns (bool)
false
isCToken(pure returns (bool)
true
isCTokenDeprecated(view returns (bool)
false
 
isDeprecated(view returns (bool)
name(view returns (string)
pendingAdmin(view returns (address)
0x0000000000000000000000000000000000000000
percentScale(view returns (uint256)
100000000000000
protocolSeizeShareMantissa(view returns (uint256)
300000000000000000
reserveFactorMantissa(view returns (uint256)
0
 
supplyRatePerBlock(view returns (uint256)
symbol(view returns (string)
totalBorrows(view returns (uint256)
0
totalReserves(view returns (uint256)
0
totalSupply(view returns (uint256)
0
underlying(view returns (address)
0x0000000000000000000000000000000000000000
underlyingBalance(view returns (uint256)
0
Read-only
allowance(address owneraddress spenderview returns (uint256)
balanceOf(address ownerview returns (uint256)
borrowBalanceStored(address accountview returns (uint256)
getAccountSnapshot(address accountview returns (uint256uint256uint256uint256)
getBorrowSnapshot(address borrowerview returns (struct CTokenStorageBorrowSnapshot)
liquidateCalculateSeizeTokens(address cTokenCollateraluint256 actualRepayAmountview returns (uint256uint256uint256)
State-modifying
_acceptAdmin(returns (uint256)
_addReserves(uint256 addAmountreturns (uint256)
_reduceReserves(uint256 reduceAmountreturns (uint256)
_setComptroller(address newComptrollerreturns (uint256)
_setDiscountRate(uint256 discountRateMantissa_returns (uint256)
_setInterestRateModel(address newInterestRateModelreturns (uint256)
_setPendingAdmin(address newPendingAdminreturns (uint256)
_setReserveFactor(uint256 newReserveFactorMantissareturns (uint256)
_syncUnderlyingBalance(
accrueInterest(returns (uint256)
approve(address spenderuint256 amountreturns (bool)
balanceOfUnderlying(address ownerreturns (uint256)
borrow(uint256 borrowAmountreturns (uint256)
borrowAndDepositBack(address borroweruint256 borrowAmountreturns (uint256)
borrowBalanceCurrent(address accountreturns (uint256)
exchangeRateCurrent(returns (uint256)
initAccrualBlockTimestamp(address timeBasedInterestRateModel
initialize(address underlying_address comptroller_address interestRateModel_uint256 initialExchangeRateMantissa_string name_string symbol_uint8 decimals_address admin_
initializeVersion2(
liquidateBorrow(address borroweruint256 repayAmountaddress cTokenCollateralreturns (uint256)
mint(uint256 mintAmountreturns (uint256)
mintWithPermit(uint256 mintAmountuint256 deadlinebytes signaturereturns (uint256)
redeem(uint256 redeemTokensreturns (uint256)
redeemUnderlying(uint256 redeemAmountreturns (uint256)
repayBorrow(uint256 repayAmountreturns (uint256)
repayBorrowBehalf(address borroweruint256 repayAmountreturns (uint256)
repayBorrowWithPermit(uint256 repayAmountuint256 deadlinebytes signaturereturns (uint256)
seize(address liquidatoraddress borroweruint256 seizeTokensuint256 seizeProfitTokensbool isRedemptionuint256 redemptionRateMantissareturns (uint256)
sweepToken(address token
totalBorrowsCurrent(returns (uint256)
transfer(address dstuint256 amountreturns (bool)
transferFrom(address srcaddress dstuint256 amountreturns (bool)
Events
AccrueInterest(uint256 cashPrioruint256 interestAccumulateduint256 borrowIndexuint256 totalBorrows
Approval(address indexed owneraddress indexed spenderuint256 amount
Borrow(address borroweruint256 borrowAmountuint256 accountBorrowsuint256 totalBorrows
Initialized(uint8 version
LiquidateBorrow(address liquidatoraddress borroweruint256 repayAmountaddress cTokenCollateraluint256 seizeTokens
Mint(address minteruint256 mintAmountuint256 mintTokens
NewAdmin(address oldAdminaddress newAdmin
NewComptroller(address oldComptrolleraddress newComptroller
NewDiscountRate(uint256 oldDiscountRateMantissauint256 newDiscountRateMantissa
NewMarketInterestRateModel(address oldInterestRateModeladdress newInterestRateModel
NewPendingAdmin(address oldPendingAdminaddress newPendingAdmin
NewReserveFactor(uint256 oldReserveFactorMantissauint256 newReserveFactorMantissa
Redeem(address redeemeruint256 redeemAmountuint256 redeemTokens
RedeemFaceValue(address indexed redeemeraddress indexed provideruint256 repayAmountaddress seizeTokenuint256 seizeAmountuint256 redemptionRateMantissa
RepayBorrow(address payeraddress borroweruint256 repayAmountuint256 accountBorrowsuint256 totalBorrows
ReservesAdded(address benefactoruint256 addAmountuint256 newTotalReserves
ReservesReduced(address adminuint256 reduceAmountuint256 newTotalReserves
Transfer(address indexed fromaddress indexed touint256 amount
Constructor
constructor(
Fallback and receive

This contract contains no fallback and receive objects.

Errors
AddReservesMarketNotFresh(
AddReservesOverflow(
BorrowAndDepositBackFailed(
BorrowCapReached(
BorrowCashNotAvailable(
BorrowMarketNotFresh(
BorrowPaused(
BorrowValueMustBeLargerThanThreshold(uint256 usdThreshold
CantEnterPausedMarket(
CantExitMarketWithNonZeroBorrowBalance(
CantSweepUnderlying(
ComptrollerMismatch(
EitherAssetOrDebtMustBeZero(
EitherAssetOrDebtMustBeZeroInGroup(uint8 groupIduint256 cDepositValuint256 suDepositValuint256 cBorrowValuint256 suBorrowVal
ExpiredSignature(
InsufficientCollateral(
InsufficientShortfall(
InterMintNotAllowed(
InvalidAddress(
InvalidAmount(
InvalidBlockNumber(
InvalidCToken(
InvalidCloseFactor(
InvalidComptroller(
InvalidDiscountRate(
InvalidExchangeRate(
InvalidGroupId(
InvalidInput(
InvalidInterestRateModel(
InvalidMinSuBorrowValue(
InvalidRedeem(
InvalidReduceAmount(
InvalidReserveFactor(
InvalidSignatureForRedeemFaceValue(
InvalidSignatureLength(
InvalidSuToken(
InvalidTimestamp(
LiquidateBorrow_LiquidatorIsBorrower(
LiquidateBorrow_RepayAmountIsMax(
LiquidateBorrow_RepayAmountIsZero(
LiquidateBorrow_SeizeTooMuch(
LiquidateCollateralMarketNotFresh(
LiquidateMarketNotFresh(
MarketAlreadyListed(
MarketAlreadyUnlisted(
MarketCanOnlyInitializeOnce(
MarketNotEmpty(
MarketNotListed(
MarketPaused(
MinDelayNotReached(
MintMarketNotFresh(
MintPaused(
NoRedemptionProvider(
NotCToken(
NotEnoughForSeize(
NotLiquidatableYet(
NotSuToken(
OnlyAdmin(
OnlyAdminOrPauser(
OnlyCToken(
OnlyListedCToken(
OnlyPausedMarketCanBeUnlisted(
OnlyPendingAdmin(
OnlyRedemptionManager(
OverThreshold(
PriceError(
ProtectedMint_OnlyAllowAssetsInTheSameGroup(
RedeemMarketNotFresh(
RedeemTransferOutNotPossible(
RedemptionSeizeTooMuch(
RedemptionSignerNotInitialized(
ReduceReservesCashNotAvailable(
ReduceReservesMarketNotFresh(
RepayBorrowMarketNotFresh(
SeizePaused(
Seize_LiquidatorIsBorrower(
SenderMustBeCToken(
SetInterestRateModelMarketNotFresh(
SetReservesFactorMarketNotFresh(
SupplyCapReached(
TokenInOrAmountInMustBeZero(
TokenTransferInFailed(
TokenTransferOutFailed(
TooMuchRepay(
TotalBorrowsNotZero(
TotalSupplyNotZero(
TransferNotAllowed(
TransferPaused(
UnderlyingBalanceError(
ZeroAddressNotAllowed(