Diamond
Verified contract
Proxy
Active on
Ethereum with 1,683 txns
Unified storage
Map
Table
Raw
Constants and immutables
1
Slot
XX
32
30
28
26
24
22
20
18
16
14
12
10
8
6
4
2
0
-
variable spans 3 additional slots
-
variable spans 3 additional slots
Balances ($0.00)
No balances found for "Diamond"
Transactions
Txn hash | Method | Block | Age | From | To | Value (ETH) | Fee (ETH) |
---|---|---|---|---|---|---|---|
| 21156946 | 3 hours ago | | | 0 | 0.016411128 | |
| 21156930 | 4 hours ago | | | 0 | 0.027600893 | |
| 21154265 | 12 hours ago | | | 0.2 | 0.0051328022 | |
| 21154160 | 13 hours ago | | | 42.61 | 0.0059579585 | |
| 21153969 | 13 hours ago | | | 0 | 0.0068027093 | |
| 21153358 | 15 hours ago | | | 0 | 0.0075324041 | |
| 21152434 | 19 hours ago | | | 0 | 0.0067473920 | |
| 21151662 | 21 hours ago | | | 0 | 0.0066555214 | |
| 21151239 | a day ago | | | 0 | 0.0052872569 | |
| 21148856 | a day ago | | | 0 | 0.0043150763 |
ABI
ABI objects
Getter at block 21157983
This contract contains no getter function objects.
Read-only
This contract contains no read-only function objects.
State-modifying
Events fxAutoRedeemFxUSD(struct LibGatewayRouterConvertOutParams[] _params, address _fxUSD, uint256 _fxUSDIn, uint256[] _minBaseTokens, uint256 _minDstOut) payable returns (uint256[] _baseOuts, uint256[] _bonusOuts, uint256 _dstOut)
fxBaseTokenSwap(address _fxUSD, address _baseTokenIn, uint256 _amountIn, address _baseTokenOut, uint256 _minOut) returns (uint256 _amountOut, uint256 _bonusOut)
fxInitialFundDeposit(struct LibGatewayRouterConvertInParams _params, address _vault) payable returns (uint256 _baseOut)
fxMintFTokenV2(struct LibGatewayRouterConvertInParams _params, address _market, uint256 _minFTokenMinted) payable returns (uint256 _fTokenMinted)
fxMintFxUSD(struct LibGatewayRouterConvertInParams _params, address _fxUSD, address _baseToken, uint256 _minFxUSDMinted) payable returns (uint256 _fxUSDMinted)
fxMintFxUSDAndEarn(struct LibGatewayRouterConvertInParams _params, address _fxUSD, address _pool, uint256 _minFxUSDMinted) payable returns (uint256 _fxUSDMinted)
fxMintXTokenV2(struct LibGatewayRouterConvertInParams _params, address _market, uint256 _minXTokenMinted) payable returns (uint256 _xTokenMinted, uint256 _bonusOut)
fxRebalancePoolWithdraw(address _fxUSD, address _pool, uint256 _amountIn) payable returns (uint256 _amountOut)
fxRebalancePoolWithdrawAs(struct LibGatewayRouterConvertOutParams _params, address _pool, uint256 _amountIn) payable returns (uint256 _amountOut)
fxRedeemFTokenV2(struct LibGatewayRouterConvertOutParams _params, address _market, uint256 _fTokenIn, uint256 _minBaseToken) returns (uint256 _baseOut, uint256 _dstOut, uint256 _bonusOut)
fxRedeemFxUSD(struct LibGatewayRouterConvertOutParams _params, address _fxUSD, address _baseToken, uint256 _fxUSDIn, uint256 _minBaseToken) payable returns (uint256 _baseOut, uint256 _dstOut, uint256 _bonusOut)
fxRedeemXTokenV2(struct LibGatewayRouterConvertOutParams _params, address _market, uint256 _xTokenIn, uint256 _minBaseToken) returns (uint256 _baseOut, uint256 _dstOut)
fxSwapFxUSD(address _market, uint256 _amountIn, bool _fxUSDForXToken, uint256 _minOut) returns (uint256 _amountOut, uint256 _bonusOut)
fxSwapV2(address _market, uint256 _amountIn, bool _fTokenForXToken, uint256 _minOut) returns (uint256 _amountOut, uint256 _bonusOut)
DiamondCut(struct IDiamondFacetCut[] _diamondCut, address _init, bytes _calldata)
OwnershipTransferred(address indexed previousOwner, address indexed newOwner)
constructor(struct IDiamondFacetCut[] _diamondCut, struct DiamondArgs _args)
fallback()
receive()
CannotAddFunctionToDiamondThatAlreadyExists(bytes4 _selector)
CannotAddSelectorsToZeroAddress(bytes4[] _selectors)
CannotRemoveFunctionThatDoesNotExist(bytes4 _selector)
CannotRemoveImmutableFunction(bytes4 _selector)
CannotReplaceFunctionThatDoesNotExists(bytes4 _selector)
CannotReplaceFunctionWithTheSameFunctionFromTheSameFacet(bytes4 _selector)
CannotReplaceFunctionsFromFacetWithZeroAddress(bytes4[] _selectors)
CannotReplaceImmutableFunction(bytes4 _selector)
FunctionNotFound(bytes4 _functionSelector)
IncorrectFacetCutAction(uint8 _action)
InitializationFunctionReverted(address _initializationContractAddress, bytes _calldata)
NoBytecodeAtAddress(address _contractAddress, string _message)
NoSelectorsProvidedForFacetForCut(address _facetAddress)
RemoveFacetAddressMustBeZeroAddress(address _facetAddress)
ErrorInsufficientOutput()
ErrorLengthMismatch()
ErrorMsgValueMismatch()
ErrorNotWhitelisted(uint8 expected, uint8 found)
ErrorTargetNotApproved()