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

AllocationStrategyInitializer

Functions

deployedAssetsOf

Returns the amount of assets currently deployed by a managed wallet.

    function deployedAssetsOf(
        address account
    )
        view
        returns (
            uint256 deployedAssets
        );

Parameters:

Index
Name
Type
Internal Type
Description

0

account

address

address

Address of the managed wallet.

Return Values:

Index
Name
Type
Internal Type
Description

0

deployedAssets

uint256

uint256

Amount of assets currently deployed by the address.

deploymentCapOf

Returns the deployment cap configured for a managed wallet.

Parameters:

Index
Name
Type
Internal Type
Description

0

account

address

address

Address of the managed wallet to read the cap for.

Return Values:

Index
Name
Type
Internal Type
Description

0

deploymentCap

uint256

uint256

Maximum amount of assets the managed wallet can deploy.

fundsAsset

Returns the address of the asset used by the strategy. Must be ERC-20 compatible.

Return Values:

Index
Name
Type
Internal Type
Description

0

fundsAsset

address

address

Address of the asset used by the strategy.

impairedAssets

Returns the total amount of impaired assets.

Return Values:

Index
Name
Type
Internal Type
Description

0

impairedAssets

uint256

uint256

Total amount of impairedAssets.

permissions

Returns the permission flags for a given address.

Parameters:

Index
Name
Type
Internal Type
Description

0

account

address

address

Address to read permissions for.

Return Values:

Index
Name
Type
Internal Type
Description

0

canDeployAssets

bool

bool

Defines if an address can deploy assets.

1

canReturnAssets

bool

bool

Defines if an address can return assets.

2

canRealizeYield

bool

bool

Defines if an address can realize yield.

recordedAssets

Returns the amount of assets recorded as held by the strategy. Comprised of the assets available to withdraw and the yield that has not vested yet. Assets transferred to the strategy outside of fundUnderlyingStrategy(), returnAssets() and realizeYield() are not recorded, and therefore are not reflected in this value.

Return Values:

Index
Name
Type
Internal Type
Description

0

recordedAssets

uint256

uint256

Amount of assets recorded as held by the strategy.

scheduledYieldAssets

Returns the total amount of assets in the yield buffer since it was last updated.

Return Values:

Index
Name
Type
Internal Type
Description

0

scheduledYieldAssets

uint256

uint256

Total assets in the yield buffer since last update.

strategyDelegateFeeRate

Returns the percentage of all strategy yield collected by the strategy delegate. Defined with 6 decimals of precision (1e6 == 100%).

Return Values:

Index
Name
Type
Internal Type
Description

0

strategyDelegateFeeRate

uint32

uint32

Percentage of yield collected by the strategy delegate.

strategyManager

Returns the address of the strategy manager contract.

Return Values:

Index
Name
Type
Internal Type
Description

0

strategyManager

address

address

Address of the strategy manager.

strategyMetadata

Returns arbitrary metadata associated with this instance of the allocation strategy.

Return Values:

Index
Name
Type
Internal Type
Description

0

strategyMetadata

string

string

Optional metadata associated with the strategy.

strategyProtocolFeeRate

Returns the percentage of all strategy yield collected by the Maple treasury. Defined with 6 decimals of precision (1e6 == 100%).

Return Values:

Index
Name
Type
Internal Type
Description

0

strategyProtocolFeeRate

uint32

uint32

Percentage of yield collected by the Maple treasury.

totalDeployedAssets

Returns the total amount of assets currently deployed across all managed wallets.

Return Values:

Index
Name
Type
Internal Type
Description

0

totalDeployedAssets

uint256

uint256

Total amount of assets currently deployed by the strategy.

yieldCap

Returns the maximum amount of assets that can be supplied as the `assets` parameter of realizeYield().

Return Values:

Index
Name
Type
Internal Type
Description

0

yieldCap

uint256

uint256

Maximum amount of assets that can be realized as yield in a single call.

yieldDeadline

Returns the timestamp when all yield assets are fully realized.

Return Values:

Index
Name
Type
Internal Type
Description

0

yieldDeadline

uint32

uint32

Timestamp when yield assets are fully realized.

yieldLastRealized

Returns the timestamp of the last successful yield realization.

Return Values:

Index
Name
Type
Internal Type
Description

0

yieldLastRealized

uint32

uint32

Timestamp of the last successful yield realization.

yieldStart

Returns the timestamp when the yield buffer was last updated.

Return Values:

Index
Name
Type
Internal Type
Description

0

yieldStart

uint32

uint32

Timestamp when the current yield buffer was last updated.

Events

Initialized

Emitted when the allocation strategy proxy is initialized.

Parameters:

Index
Name
Type
Internal Type
Description

0

strategyManager

address

address

Address of the strategy manager contract.

1

params

tuple

struct AllocationStrategyInitializerParams

Allocation strategy parameters set during initialization.

Structs

AllocationStrategyInitializerParams

Parameters required to initialize an allocation strategy. Initializer arguments are encoded as abi.encode(strategyManager) || abi.encode(params).

Members:

Index
Name
Type
Internal Type
Description

0

fundsAsset

address

address

Address of the asset used by the strategy.

1

strategyMetadata

string

string

Optional metadata associated with the allocation strategy.

2

strategyDelegateFeeRate

uint32

uint32

Percentage of yield collected by the strategy delegate.

3

strategyProtocolFeeRate

uint32

uint32

Percentage of yield collected by the Maple treasury.

4

yieldCap

uint256

uint256

Maximum amount of assets that can be realized as yield in a single call.

Last updated

Was this helpful?