For the complete documentation index, see llms.txt. This page is also available as Markdown.

ExtensionsMap

ExtensionsMap

Its deployed address will be different on different chains and change if selectors or mapped addresses change.

eApps

address eApps

Returns the address of the applications extension contract.

eNavView

address eNavView

Returns the address of the navigation view extension contract.

eOracle

address eOracle

Returns the address of the oracle extension contract

eUpgrade

address eUpgrade

Returns the address of the upgrade extension contract.

eCrosschain

Returns the address of the cross-chain handler extension contract.

eGmxCallback

Returns the address of the GMX v2 callback extension contract.

wrappedNative

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.

constructor

Assumes extensions have been correctly initialized.

When adding a new app, modify apps type and assert correct params are passed to the constructor.

getExtensionBySelector

Returns the map of an extension's selector.

Should be called by pool with delegatecall

Parameters

Name
Type
Description

selector

bytes4

Selector of the function signature.

Return Values

Name
Type
Description

extension

address

Address of the target extensions.

shouldDelegatecall

bool

Boolean if should maintain context of call or not.

Last updated