ExtensionsMap
Last updated
Its deployed address will be different on different chains and change if selectors or mapped addresses change.
address eAppsReturns the address of the applications extension contract.
address eNavViewReturns the address of the navigation view extension contract.
address eOracleReturns the address of the oracle extension contract
address eUpgradeReturns the address of the upgrade extension contract.
Returns the address of the cross-chain handler extension contract.
Returns the address of the GMX v2 callback extension contract.
Returns the address of the wrapped native token.
It is used for initializing it in the pool implementation immutable storage without passing it in the constructor.
Assumes extensions have been correctly initialized.
When adding a new app, modify apps type and assert correct params are passed to the constructor.
Returns the map of an extension's selector.
Should be called by pool with delegatecall
selector
bytes4
Selector of the function signature.
extension
address
Address of the target extensions.
shouldDelegatecall
bool
Boolean if should maintain context of call or not.
Last updated
address eCrosschainaddress eGmxCallbackaddress wrappedNativeconstructor() publicfunction getExtensionBySelector(bytes4 selector) external view returns (address extension, bool shouldDelegatecall)