CompoundController

Verified contract

Active on Ethereum with 16 txns
Deployed by via 0x6e7ad18c at 12024584
Slot
32
30
28
26
24
22
20
18
16
14
12
10
8
6
4
2
0
1 additional variable

No balances found for "CompoundController"

0x2088dd16aef7c1a0e12fb45daeecf0db2b56b0f883177f13bbb5979c346f43c5
0x9e2704aa6ae7186c2937acb759a577c485370e24ad65f48d613fafb637a92e15
0xd6ae4be29ba897c50f24faf9c98ed76ae7a39085f7305871c9f27e064aa770b5
0xf554845d781d9d2213d1a0458f97374940eaf0e49929abe409c418c87caccbc8
0xe6a6c44b11512f09e7076480060156a3a6cbc07c48e0cd00b7b6a9776f5e90b7
0x5c4629b7f85208bda6201bc371af0e378e9542951156e1f41247924eda15e7a4
0x2477a190c570e4d486119d87ae981198a8644726cc1975a68a9f4a7a4ce87da0
0xeda0daa788d703ff2c8ee3c4d3eae4b7dc2c858e7c3f592fb76f5e0c6369ca4d
0x12947fdadd3673af5e61f1ced9b8b74e4e301ff0962ebdaee5a6d9ba0b222f83
0xca7fae92c9ef403b305ee38391f94550463d13c8102dca240535d8353b596e43

Functions
Getter at block 21256857
BLOCKS_PER_DAY(view returns (uint256)
5760
BOND_LIFE_MAX(view returns (uint16)
365
BOND_MAX_RATE_PER_DAY(view returns (uint256)
719065000000000
DOUBLE_SCALE(view returns (uint256)
1000000000000000000000000000000000000
EXP_SCALE(view returns (uint256)
1000000000000000000
FEE_BUY_JUNIOR_TOKEN(view returns (uint256)
5000000000000000
FEE_REDEEM_SENIOR_BOND(view returns (uint256)
50000000000000000
HARVEST_COST(view returns (uint256)
40000000000000000
MAX_UINT256(view returns (uint256)
115792089237316195423570985008687907853269984665640564039457584007913129639935
PAUSED_BUY_JUNIOR_TOKEN(view returns (bool)
false
PAUSED_BUY_SENIOR_BOND(view returns (bool)
false
UNISWAP_FACTORY(view returns (address)
0x5c69bee701ef814a2b6a3edd4b1652cb9cc5aa6f
UNISWAP_ROUTER_V2(view returns (address)
0x7a250d5630b4cf539739df2c5dacb4c659f2488d
bondModel(view returns (address)
0x48a41e77bef0654831c12cd816bd62ce9c5adbb8
cumulativeDistributionRate(view returns (uint256)
23150193228723611
cumulativeSupplyRate(view returns (uint256)
96027602638358101
dao(view returns (address)
0x4cae362d7f227e3d306f70ce4878e245563f3069
feesOwner(view returns (address)
0x4cae362d7f227e3d306f70ce4878e245563f3069
guardian(view returns (address)
0x54e6a2f9991b6b6d57d152d21427e8cb80b25e91
harvestedLast(view returns (uint256)
1673975603
oracle(view returns (address)
0xbd45dba10b4e2a81040b7511ff4c210eb590b817
pool(view returns (address)
0xdaa037f99d168b552c0c61b7fb64cf7819d78310
prevCompSupplyState(view returns (uint224 indexuint32 block)
(index=77232613081136195923568085522837569385714, block=19913799)
prevCumulationTime(view returns (uint256)
1716240359
prevExchnageRateCurrent(view returns (uint256)
239021668900836
smartYield(view returns (address)
0x4b8d90d68f26def303dcb6cfc9b63a1aaec15840
 
spotDailyDistributionRateProvider(view returns (uint256)
 
spotDailyRate(view returns (uint256)
 
spotDailySupplyRateProvider(view returns (uint256)
underlyingDecimals(view returns (uint256)
6
 
uniswapPriceCumulativesNow(view returns (uint256[])
uniswapRouter(view returns (address)
0x7a250d5630b4cf539739df2c5dacb4c659f2488d
Read-only
cTokensToUnderlying(uint256 cTokens_uint256 exchangeRate_pure returns (uint256)
expectedDistributeSupplierComp(uint256 cTokenBalance_uint224 nowSupplyStateIndex_uint224 prevSupplyStateIndex_pure returns (uint256)
quoteCompToUnderlying(uint256 compIn_uint256 timeElapsed_uint256[] prevUniswapPriceCumulatives_uint256[] nowUniswapPriceCumulatives_pure returns (uint256)
quoteSpotCompToUnderlying(uint256 compIn_view returns (uint256)
uniswapAmountOut(uint256 prevPriceCumulative_uint256 nowPriceCumulative_uint256 timeElapsed_uint256 amountIn_pure returns (uint256)
uniswapPairs(uint256view returns (address)
uniswapPath(uint256view returns (address)
uniswapPriceCumulativeNow(address pair_uint8 priceKey_view returns (uint256)
uniswapPriceCumulatives(uint256view returns (uint256)
uniswapPriceKeys(uint256view returns (uint8)
State-modifying
_afterCTokenBalanceChange(uint256 prevCTokenBalance_
_beforeCTokenBalanceChange(
cumulatives(returns (uint256)
harvest(uint256 maxCompAmount_returns (uint256 compGotuint256 underlyingHarvestReward)
providerRatePerDay(returns (uint256)
setBondLifeMax(uint16 newVal_
setBondMaxRatePerDay(uint256 newVal_
setBondModel(address newVal_
setDao(address dao_
setFeeBuyJuniorToken(uint256 newVal_
setFeeRedeemSeniorBond(uint256 newVal_
setFeesOwner(address newVal_
setGuardian(address guardian_
setHarvestCost(uint256 newValue_
setOracle(address newVal_
setPaused(bool buyJToken_bool buySBond_
setUniswapPath(address[] newUniswapPath_
updateAllowances(
yieldControllTo(address newController_
Events
Harvest(address indexed calleruint256 compRewardTotaluint256 compRewardSolduint256 underlyingPoolShareuint256 underlyingRewarduint256 harvestCost
Constructor
constructor(address pool_address smartYield_address bondModel_address[] uniswapPath_
Fallback and receive

This contract contains no fallback and receive objects.

Errors

This contract contains no error objects.