TransparentUpgradeableProxy

Verified contract

Proxy

Active on Ethereum with 39 txns
Deployed by via 0x0d98ef39 at 19460663
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 $4,703,305.77
0xd0f10d852ebb580d56a68422785477f518b46e21369ca388a46cd6d14d5c89eb
0x47f02648b917d6d95aac34c8850e4d92659266de75b6c9e5713857951942291b
0xeabe9fdae591c25415ca573b0ae35885440ae906c83b2375ab8e6f6eaf0f4cf8
0x1e54e7924666c7c1ee93ae70ad5d806edb9f1736b0fe1214a89a624c945a7200
0xf42d23a9509b4838a18bd3dea95e80fb3c5de9c83bc9f4a2e04b26df19f54c4c
0x6d2586f7ee79c1ef057e7679b6427392364f6f0b805f8f9bde1a1003ad0a3189
0xa69a4fbd57e1d60ada14ad9fc66547bfb627360bef9032a8be41f0ec4b4d4cf3
0x16810c506ad77c29c1d2dd3a7573b5e0ce79b80f4ec61cdeb827d811d0e5bc4d
0x5d76cd70700f0201d6d0d2114e70d886e1207f92242af006099d0b8049d4b851
0xdbfdb7c63fe9318a0733bb8a5f2b0ff464ae68ef4660757108089680a07ff9f4

Functions
Getter at block 21326129
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)
0xcd5fe23c85820f7b72d0926fc9b05b43e359b7ee
baseTokenCap(view returns (uint256)
5000000000000000000000
 
collateralRatio(view returns (uint256)
 
currentBaseTokenPrice(view returns (uint256)
emaLeverageRatio(view returns (uint40 lastTimeuint24 sampleIntervaluint96 lastValueuint96 lastEmaValue)
(lastTime=1733218679, sampleInterval=60, lastValue=1695897762216818059, lastEmaValue=1675481721829991108)
fToken(view returns (address)
0x9216272158f563488ffc36afb877aca2f265c560
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)
1695897762216818059
platform(view returns (address)
0x0084c2e1b1823564e597ff4848a88d61ac63d703
priceOracle(view returns (address)
0xe1b11bb0b6d1b321eeb7e0298a3f9eb92171693b
rateProvider(view returns (address)
0xcd5fe23c85820f7b72d0926fc9b05b43e359b7ee
rebalancePoolSplitter(view returns (address)
0x015729c84a1c5e541dfbf6f0ddc59ae66527b5ed
referenceBaseTokenPrice(view returns (uint256)
3496596063318600000000
strategy(view returns (address)
0x0000000000000000000000000000000000000000
strategyUnderlying(view returns (uint256)
0
totalBaseToken(view returns (uint256)
1290087077960264675985
xToken(view returns (address)
0xacb3604aadf26e6c0bb8c720420380629a328d2c
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(