Left Curve Software Stack
    Preparing search index...

    Type Alias DexExecuteMsg

    DexExecuteMsg:
        | { swapExactAmountOut: { output: Coin; route: SwapRoute } }
        | {
            swapExactAmountIn: { minimumOutput: Option<string>; route: SwapRoute };
        }
        | {
            batchUpdateOrders: {
                cancels: Option<CancelOrderRequest>;
                creates: CreateOrderRequest[];
            };
        }
        | { withdrawLiquidity: { baseDenom: string; quoteDenom: string } }
        | { provideLiquidity: { baseDenom: string; quoteDenom: string } }
        | {
            liquidityDepth: {
                baseDenom: Denom;
                bucketSize: string;
                limit: Option<number>;
                quoteDenom: Denom;
            };
        }

    Type Declaration

    • { swapExactAmountOut: { output: Coin; route: SwapRoute } }

      Perform an instant swap directly in the passive liqudiity pools, with an exact amount of output asset.

      User must send exactly one asset, which must be either the base or quote asset of the first pair in the route.

      Slippage control is implied by the input amount. If required input is less than what user sends, the excess is refunded. Otherwise, if required input more than what user sends, the swap fails.

    • { swapExactAmountIn: { minimumOutput: Option<string>; route: SwapRoute } }

      Perform an instant swap directly in the passive liquidity pools, with an exact amount of input asset. User must send exactly one asset, which must be either the base or quote asset of the first pair in the route.

      User may specify a minimum amount of output, for slippage control.

    • {
          batchUpdateOrders: {
              cancels: Option<CancelOrderRequest>;
              creates: CreateOrderRequest[];
          };
      }

      Create or cancel multiple limit orders in one batch.

    • { withdrawLiquidity: { baseDenom: string; quoteDenom: string } }

      Withdraw passive liquidity from a pair. Withdrawal is always performed at the pool ratio.

    • { provideLiquidity: { baseDenom: string; quoteDenom: string } }

      Provide passive liquidity to a pair. Unbalanced liquidity provision is equivalent to a swap to reach the pool ratio, followed by a liquidity provision at pool ratio.

    • {
          liquidityDepth: {
              baseDenom: Denom;
              bucketSize: string;
              limit: Option<number>;
              quoteDenom: Denom;
          };
      }