CompoundController

Verified contract

Active on Ethereum with 8 txns
Deployed by via 0x4b0cc0e3 at 12191827
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"

0x665daac3e4122b8f060fcf4e668384a32d6b2b084ddcb473f86161dcdd8c6eb0
0xcbf52122f0caaf31c07f251e850f4862bf60ded71e08d0bd57ebbf1695572a08
0x5f012c12cf8609b4ee9c6eb54ad47ce9001127aaf8a8b5244fa230861a40f580
0x7b3a3b16b9e8c8743b5580c9c7749c9b227306245df054a4a5631235279d1df6
0x75072172e2fdbc94cffc0be1bf6fa070c670d8984f554a6001e95ca2493583ff
0x81b6580681ae3daba63ebe70572bd8db25520869e78a1506e40208cd5f250e55
0x9c5c66ae37dadb379bb907649f39f6d66c48dc2f25d8c85af5a1a6e695164658
0x8d59f7af04a7f7f49cf673924c70d3952a6ab085a6fa4ce9d3aa554200a7e65f

Functions
Getter at block 21305853
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)
17183085007289289
cumulativeSupplyRate(view returns (uint256)
35971951675645426
dao(view returns (address)
0x4cae362d7f227e3d306f70ce4878e245563f3069
feesOwner(view returns (address)
0x4cae362d7f227e3d306f70ce4878e245563f3069
guardian(view returns (address)
0x54e6a2f9991b6b6d57d152d21427e8cb80b25e91
harvestedLast(view returns (uint256)
1667890247
oracle(view returns (address)
0x6b9ee6c8b24dcd1a1e7d7b64d7b2867e30151b78
pool(view returns (address)
0xe6c1a8e7a879d7febb8144276a62f9a6b381bd37
prevCompSupplyState(view returns (uint224 indexuint32 block)
(index=68958455643329721703450717683622597981577, block=15923631)
prevCumulationTime(view returns (uint256)
1667890247
prevExchnageRateCurrent(view returns (uint256)
220957386069528893762896442
smartYield(view returns (address)
0x673f9488619821ab4f4155fdffe06f6139de518f
 
spotDailyDistributionRateProvider(view returns (uint256)
 
spotDailyRate(view returns (uint256)
 
spotDailySupplyRateProvider(view returns (uint256)
underlyingDecimals(view returns (uint256)
18
 
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.