TransparentUpgradeableProxy

Verified contract

Proxy

Active on Ethereum with 41 txns
Deployed by via 0xfa4bf8ca at 19682580
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
-
variable spans 46 additional slots
ERC-20
Value $5,996,814.24
ERC-20
Value $0.01
ERC-20
--
ERC-20
--
ERC-20
--
0x3bd90b399a6a4ede4368012bf308affc29d111fa6f9d13f9268adafdb87b83fd
0x2c9e8f29a1e266fd0be2cbfd2b01baf355762d1610341ff840713c12044732a1
0x91c550507062f5b6f634f1ccf06eafe715efc63472ece0a1923dc063623c3a8d
0x4a473dbca465ff36062892b06197f711faa3ca4ad19e49cae76a9e1a8f1fd5e3
0xb46d2e3f4ddc6be5fa77e41172201e8ea58853bec9b2130e2fd538e06043f3bb
0x98b44dfd3d25d970b25d1f02220e90ba6fc09cfb1c66647b3cd413205ba3a11e
0x50b96af1b6e5de0bf12a9e8ff57b738652ba28d821c8c6c77172b3dcc1fb91a0
0x513aaab87845ba6552fdc88371bc5901fc60ecbbd4348a0891e74bb9323a5ad1
0xc1d829299c8c09645cf0cb70a87fbfb8c00b797f26a431084be29b05f0e4e33c
0x7768f6dea6b73f5312e212b0f167200f98b4ccf9a3667fb4a2277a18bef6ba66

Functions
Getter at block 21158336
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
amm(view returns (address)
0xe0438eb3703bf871e31ce639bd351109c88666ea
baseToken(view returns (address)
0x2260fac5e5542a773aa44fbcfedf7c193bc2c599
baseTokenCap(view returns (uint256)
200000000000000000000
borrowRateSnapshot(view returns (uint128 borrowIndexuint128 timestamp)
(borrowIndex=1150056612581890033, timestamp=1731227927)
 
collateralRatio(view returns (uint256)
 
currentBaseTokenPrice(view returns (uint256)
emaLeverageRatio(view returns (uint40 lastTimeuint24 sampleIntervaluint96 lastValueuint96 lastEmaValue)
(lastTime=1731227927, sampleInterval=60, lastValue=1987042834823503061, lastEmaValue=1983752950692955839)
fToken(view returns (address)
0x576b4779727f5998577bb4e25bf726abe742b9f7
fundingCostScale(view returns (uint256)
250000000000000000
getFundingRate(view returns (uint256 _fundingRate)
47753744582114
getHarvesterRatio(view returns (uint256)
0
getRebalancePoolRatio(view returns (uint256)
666666666
 
harvestable(view returns (uint256)
 
isBaseTokenPriceValid(view returns (bool _isValid)
 
isUnderCollateral(view returns (bool)
leverageRatio(view returns (uint256)
1987042834823503061
platform(view returns (address)
0x0084c2e1b1823564e597ff4848a88d61ac63d703
priceOracle(view returns (address)
0x4f8330946669d71014efdce30ef19a256643fba8
rebalancePoolSplitter(view returns (address)
0x6e854737e091ca0d2ad9da36f93302b9aa995a62
referenceBaseTokenPrice(view returns (uint256)
63850109713767925431599
strategy(view returns (address)
0x0000000000000000000000000000000000000000
strategyUnderlying(view returns (uint256)
0
totalBaseToken(view returns (uint256)
75321721407414165725
xToken(view returns (address)
0x9f23562ec47249761222ef7ac02b327a8c45ba7d
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 _priceOracleuint256 _baseTokenCapuint24 sampleIntervaladdress _amm
initializeProtocol(uint256 _baseInreturns (uint256 fTokenOutuint256 xTokenOut)
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
updateFundingCostScale(uint256 _newScale
updateHarvesterRatio(uint32 _newRatio
updatePlatform(address _platform
updatePriceOracle(address _priceOracle
updateRebalancePoolRatio(uint32 _newRatio
updateRebalancePoolSplitter(address _splitter
updateStrategy(address _strategy
Events
AdminChanged(address previousAdminaddress newAdmin
Upgraded(address indexed implementation
CaptureFundingRate(uint256 timestampuint256 borrowIndex
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
UpdateFundingCostScale(uint256 oldScaleuint256 newScale
UpdateHarvesterRatio(uint256 oldRatiouint256 newRatio
UpdatePlatform(address indexed oldPlatformaddress indexed newPlatform
UpdatePriceOracle(address indexed oldPriceOracleaddress indexed newPriceOracle
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(