TransparentUpgradeableProxy

Verified contract

Proxy

Active on Ethereum with 34 txns
Deployed by via 0x9b20e414 at 19287795
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 $9,994,144.2
0x8c35d945ca85be74b90dfd7e91d13cc73c46f3540f5f53782adafb4617cb6e65
0x03c96565aa868e21750fa49b6c1424b5f0d526b8335d0bd8139c874cbc7411f1
0xedf3d27e20054490173acea97657abff4fed34e6572c22ca4d9d712185e80b2b
0xc7b38124f570f80a84c7ea57b55104228d44df5b520e581f720cffdae2174975
0x608b06cc0b4ea8ddcbf8ea0af1c7946dd0da7e9978ae62388a38c3da777f539b
0x3b9839556c124dacd97b6b3f34000a9756a2137485323e1906245a2628002621
0x16bbe46525718f1e2fdb945c0622fc0fbafb60e0339f9c56af526a9b1e3cd00e
0x95884bc719dcffa0e202e873e1edc4de2d76a4bd9bda7fe3dd7728ff581216ae
0xdfca1e2626a3f4fee59dd9d64ffd9afa9d62c53cb2154e5edae3d924586c8349
0xb35f74f3a87fa6457ddbf3609b09e398fa87db3746eb7dffde336b73998f3615

Functions
Getter at block 21205280
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)
0xac3e018457b222d93114458476f3e3416abbe38f
baseTokenCap(view returns (uint256)
5000000000000000000000
 
collateralRatio(view returns (uint256)
 
currentBaseTokenPrice(view returns (uint256)
emaLeverageRatio(view returns (uint40 lastTimeuint24 sampleIntervaluint96 lastValueuint96 lastEmaValue)
(lastTime=1731784367, sampleInterval=60, lastValue=1765938873285227697, lastEmaValue=1815171989235949641)
fToken(view returns (address)
0xa87f04c9743fd1933f82bddec9692e9d97673769
getHarvesterRatio(view returns (uint256)
10000000
getRebalancePoolRatio(view returns (uint256)
500000000
harvestable(view returns (uint256)
620354587444672509
 
isBaseTokenPriceValid(view returns (bool _isValid)
 
isUnderCollateral(view returns (bool)
leverageRatio(view returns (uint256)
1765938873285227697
platform(view returns (address)
0x0084c2e1b1823564e597ff4848a88d61ac63d703
priceOracle(view returns (address)
0xffe563c168c01e05da4f3d81938af158466ad793
rateProvider(view returns (address)
0x7ced6167b5a08111dc8d0d2f9f7e482c4da62506
rebalancePoolSplitter(view returns (address)
0xb26ca48fe4ee94a4fe8815f7e54e99124f997540
referenceBaseTokenPrice(view returns (uint256)
3240652520326128373477
strategy(view returns (address)
0x0000000000000000000000000000000000000000
strategyUnderlying(view returns (uint256)
0
totalBaseToken(view returns (uint256)
3218320842767082660227
xToken(view returns (address)
0x2bb0c32101456f5960d4e994bac183fe0dc6c82c
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(