Type alias SfxStrategy

SfxStrategy: {
    maxAssetCost?: number;
    maxTxFeeShare?: number;
    maxTxFeesUsd?: number;
    minProfitUsd?: number;
    minYield?: number;
}

Type used for describing SFX strategies. These are used to determine the profitability of a given SFX, deciding if a bid should be submitted.

Type declaration

  • Optional maxAssetCost?: number

    The maximum cost in USD to spend on a single SFX. This only includes the cost of the assets that are being sent. This puts a cap on the value of assets to be sent.

  • Optional maxTxFeeShare?: number

    The max share of txCost to profit. This is defined by txCost / maxProfit

  • Optional maxTxFeesUsd?: number

    The max tx costs in USD for an execution. This can be useful to prevent executions during network congestion.

  • Optional minProfitUsd?: number

    Minimum profit in USD that a SFX should have to be considered profitable.

  • Optional minYield?: number

    A percentage value for the minimum yield that a SFX should have Yield is defined by (minProfit / totalCost)

Generated using TypeDoc