TransparentUpgradeableProxy

Verified contract

Proxy

Active on Ethereum with 40 txns
Deployed by via 0x10cc70d1 at 19489495
Slot
32
30
28
26
24
22
20
18
16
14
12
10
8
6
4
2
0
-
variable spans 49 additional slots
-
variable spans 49 additional slots
-
variable spans 48 additional slots
-
variable spans 39 additional slots
ERC-20
Value $676,481.42
0x5473fe2cec39058ddd1a71633842c5d55235ef60987e522c9cdcff4d4400cde5
0x06de2d5b6e47ece0b49a582e53549cf1420d06a38f344eea858f781bf3ae4ced
0xf09afe73b91d5effbf932c86977c63a24b9cdcb5c9a377f7ef1f635df09f8209
0x5db5bf48bf276708bd488764e1defe00640bb0066a599c8759ced5717e6b28a3
0x88cea9bc43bcf88c317b7e3bf27e03acd986b4f86cdc5964096ac3f738ce97fb
0x36f26658d58b8e02f02c3dd0aba20643087b732cf4aa73c38d5311b216da6d01
0xdaf9b081674f86f1463163c82d4c54ffc7c37f7ebf42b6e0de084e20ea68d970
0xd6073b87bdaa5f96e3fc8b628149eb2f3c4721169ef7bc1e7e4e96a1ce64d220
0x06a6357524631e1208be879cf43165a53aab88355e9e8cc0130a5391ed56a675
0x1ab0ab6d8e6cfdea0f76497c647be0a920ddf2f1b4d71fd8409b9e437f7e92af

Functions
Getter at block 21303798
DEFAULT_ADMIN_ROLE(view returns (bytes32)
0x0000000000000000000000000000000000000000000000000000000000000000
FX_MARKET_ROLE(view returns (bytes32)
0xe88ed2d35c0cfab359fb462bf5a023d04cb058b5e7f26c13b23a5904cff6b510
PROTOCOL_INITIALIZER_ROLE(view returns (bytes32)
0x7a674bc9ca1d5ae35bc3b985343a16fa8652fb50eae4a09af3e0555006940964
SETTLE_WHITELIST_ROLE(view returns (bytes32)
0x8e2ea90053027dd0e107693aeca5d0e7b6cd7291479d8384fbbcee6d132d6716
baseToken(view returns (address)
0xbf5495efe5db9ce00f80364c8b423567e58d2110
baseTokenCap(view returns (uint256)
200000000000000000000
 
collateralRatio(view returns (uint256)
 
currentBaseTokenPrice(view returns (uint256)
emaLeverageRatio(view returns (uint40 lastTimeuint24 sampleIntervaluint96 lastValueuint96 lastEmaValue)
(lastTime=1732990319, sampleInterval=60, lastValue=2282500482312610807, lastEmaValue=1328842252541685958)
fToken(view returns (address)
0x50b4dc15b34e31671c9ca40f9eb05d7ebd6b13f9
getHarvesterRatio(view returns (uint256)
10000000
getRebalancePoolRatio(view returns (uint256)
500000000
 
harvestable(view returns (uint256)
 
isBaseTokenPriceValid(view returns (bool _isValid)
 
isUnderCollateral(view returns (bool)
leverageRatio(view returns (uint256)
2282500482312610807
platform(view returns (address)
0x0084c2e1b1823564e597ff4848a88d61ac63d703
priceOracle(view returns (address)
0x564a464c9c357de593fa48efd784048a9e366523
rateProvider(view returns (address)
0xe3ff08070ab3ad7eee7a1cab35105f27df8eff10
rebalancePoolSplitter(view returns (address)
0x2755eebf220bfd31b83fd9244b6d061bca225311
referenceBaseTokenPrice(view returns (uint256)
3374553159266666666666
strategy(view returns (address)
0x0000000000000000000000000000000000000000
strategyUnderlying(view returns (uint256)
0
totalBaseToken(view returns (uint256)
182033091550134651000
xToken(view returns (address)
0x2e5a5af7ee900d34bcfb70c47023bf1d6be35cf5
Read-only
getRoleAdmin(bytes32 roleview returns (bytes32)
getUnderlyingValue(uint256 _amountview returns (uint256)
getWrapppedValue(uint256 _amountview returns (uint256)
hasRole(bytes32 roleaddress accountview returns (bool)
maxMintableFToken(uint256 _newCollateralRatioview returns (uint256 _maxBaseInuint256 _maxFTokenMintable)
maxMintableXToken(uint256 _newCollateralRatioview returns (uint256 _maxBaseInuint256 _maxXTokenMintable)
maxRedeemableFToken(uint256 _newCollateralRatioview returns (uint256 _maxBaseOutuint256 _maxFTokenRedeemable)
maxRedeemableXToken(uint256 _newCollateralRatioview returns (uint256 _maxBaseOutuint256 _maxXTokenRedeemable)
supportsInterface(bytes4 interfaceIdview returns (bool)
State-modifying
admin(returns (address admin_)
changeAdmin(address newAdmin
implementation(returns (address implementation_)
upgradeTo(address newImplementation
upgradeToAndCall(address newImplementationbytes datapayable 
grantRole(bytes32 roleaddress account
harvest(
initialize(address _platformaddress _rebalancePoolSplitteraddress _rateProvideraddress _priceOracleuint256 _baseTokenCapuint24 sampleInterval
initializeProtocol(uint256 _baseInreturns (uint256uint256)
mintFToken(uint256 _baseInaddress _recipientreturns (uint256 _fTokenOut)
mintXToken(uint256 _baseInaddress _recipientreturns (uint256 _xTokenOut)
notifyStrategyProfit(uint256 _amount
redeem(uint256 _fTokenInuint256 _xTokenInaddress _ownerreturns (uint256 _baseOut)
renounceRole(bytes32 roleaddress account
revokeRole(bytes32 roleaddress account
settle(
transferToStrategy(uint256 _amount
updateBaseTokenCap(uint256 _baseTokenCap
updateEMASampleInterval(uint24 _sampleInterval
updateHarvesterRatio(uint32 _newRatio
updatePlatform(address _platform
updatePriceOracle(address _priceOracle
updateRateProvider(address _rateProvider
updateRebalancePoolRatio(uint32 _newRatio
updateRebalancePoolSplitter(address _splitter
updateStrategy(address _strategy
Events
AdminChanged(address previousAdminaddress newAdmin
Upgraded(address indexed implementation
Harvest(address indexed calleruint256 totalRewardsuint256 rebalancePoolRewardsuint256 harvestBounty
Initialized(uint8 version
RoleAdminChanged(bytes32 indexed rolebytes32 indexed previousAdminRolebytes32 indexed newAdminRole
RoleGranted(bytes32 indexed roleaddress indexed accountaddress indexed sender
RoleRevoked(bytes32 indexed roleaddress indexed accountaddress indexed sender
Settle(uint256 oldPriceuint256 newPrice
UpdateBaseTokenCap(uint256 oldBaseTokenCapuint256 newBaseTokenCap
UpdateEMASampleInterval(uint256 oldSampleIntervaluint256 newSampleInterval
UpdateHarvesterRatio(uint256 oldRatiouint256 newRatio
UpdatePlatform(address indexed oldPlatformaddress indexed newPlatform
UpdatePriceOracle(address indexed oldPriceOracleaddress indexed newPriceOracle
UpdateRateProvider(address indexed oldRateProvideraddress indexed newRateProvider
UpdateRebalancePoolRatio(uint256 oldRatiouint256 newRatio
UpdateRebalancePoolSplitter(address indexed oldRebalancePoolSplitteraddress indexed newRebalancePoolSplitter
UpdateStrategy(address indexed oldStrategyaddress indexed newStrategy
Constructor
constructor(address _logicaddress admin_bytes _data
Fallback and receive
fallback(
receive(
Errors
ErrorCollateralRatioTooSmall(
ErrorEMASampleIntervalTooSmall(
ErrorExceedTotalCap(
ErrorHarvesterRatioTooLarge(
ErrorInsufficientInitialBaseToken(
ErrorInvalidOraclePrice(
ErrorInvalidTwapPrice(
ErrorProtocolInitialized(
ErrorRebalancePoolRatioTooLarge(
ErrorUnderCollateral(
ErrorZeroAddress(