Skip to main content

IVaultEarningDistributor.sol

IVaultEarningDistributor

createMakerEarningDistributionTask

function createMakerEarningDistributionTask(address token) external

Creates a maker earning distribution task for a token.

  • Parameters:

    NameTypeDescription
    tokenaddressThe address of the settlement token.

cancelMakerEarningDistributionTask

function cancelMakerEarningDistributionTask(address token) external

Cancels a maker earning distribution task for a token.

  • Parameters:

    NameTypeDescription
    tokenaddressThe address of the settlement token.

resolveMakerEarningDistribution

function resolveMakerEarningDistribution(address token) external view returns (bool canExec, bytes execPayload)

Resolves the maker earning distribution for a specific token.

  • Parameters:

    NameTypeDescription
    tokenaddressThe address of the settlement token.
  • Return Values:

    NameTypeDescription
    canExecboolTrue if the distribution can be executed, otherwise False.
    execPayloadbytesThe payload for executing the distribution.

distributeMakerEarning

function distributeMakerEarning(address token) external

Distributes the maker earning for a token to the each markets.

  • Parameters:

    NameTypeDescription
    tokenaddressThe address of the settlement token.

createMarketEarningDistributionTask

function createMarketEarningDistributionTask(address market) external

Creates a market earning distribution task for a market.

  • Parameters:

    NameTypeDescription
    marketaddressThe address of the market.

cancelMarketEarningDistributionTask

function cancelMarketEarningDistributionTask(address market) external

Cancels a market earning distribution task for a market.

  • Parameters:

    NameTypeDescription
    marketaddressThe address of the market.

resolveMarketEarningDistribution

function resolveMarketEarningDistribution(address market) external view returns (bool canExec, bytes execPayload)

Resolves the market earning distribution for a market.

  • Parameters:

    NameTypeDescription
    marketaddressThe address of the market.
  • Return Values:

    NameTypeDescription
    canExecboolTrue if the distribution can be executed.
    execPayloadbytesThe payload for executing the distribution.

distributeMarketEarning

function distributeMarketEarning(address market) external

Distributes the market earning for a market to the each bins.

  • Parameters:

    NameTypeDescription
    marketaddressThe address of the market.