UNPKG

@algofi/js-sdk

Version:

The official Algofi JavaScript SDK

44 lines (43 loc) 1.56 kB
import { Network } from "../../globals"; export declare enum PoolType { LOW_FEE = 0, HIGH_FEE = 1, NANO = 2, MOVING_RATIO_NANO = 3, LOW_FEE_LENDING = 4 } export declare function getSwapFee(poolType: PoolType): number; export declare function getValidatorIndex(poolType: PoolType): number; export declare function getPoolApprovalProgram(network: Network, poolType: PoolType): Uint8Array; export declare function getPoolClearStateProgram(network: Network): Uint8Array; export declare const POOL_STRINGS: { manager_app_id: string; asset1_id: string; asset2_id: string; lp_id: string; asset1_reserve: string; asset2_reserve: string; balance_1: string; balance_2: string; lp_circulation: string; pool: string; redeem_pool_asset1_residual: string; redeem_pool_asset2_residual: string; burn_asset1_out: string; burn_asset2_out: string; swap_exact_for: string; swap_for_exact: string; redeem_swap_residual: string; registered_pool_id: string; initialize_pool: string; initial_amplification_factor: string; future_amplification_factor: string; initial_amplification_factor_time: string; future_amplification_factor_time: string; ramp_amplification_factor: string; target_ratio_adjustment_start_time: string; target_ratio_adjustment_end_time: string; initial_target_asset1_to_asset2_ratio: string; current_target_asset1_to_asset2_ratio: string; goal_target_asset1_to_asset2_ratio: string; };