Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • Contract
    • IAMM

Index

Constructors

Properties

Methods

Constructors

  • new IAMM(addressOrName: string, contractInterface: ContractInterface, signerOrProvider?: Signer | Provider): IAMM
  • Parameters

    • addressOrName: string
    • contractInterface: ContractInterface
    • Optional signerOrProvider: Signer | Provider

    Returns IAMM

Properties

_deployedPromise: Promise<Contract>
_runningEvents: {}

Type declaration

  • [eventTag: string]: RunningEvent
_wrappedEmits: {}

Type declaration

  • [eventTag: string]: (...args: any[]) => void
      • (...args: any[]): void
      • Parameters

        • Rest ...args: any[]

        Returns void

address: string
callStatic: { addLiquidity: any; addLiquidity(uint256,uint256,uint256[2]): any; ammId: any; ammId(): any; calcInAndSpotGivenOut: any; calcInAndSpotGivenOut(uint256,uint256,uint256,uint256,uint256): any; calcOutAndSpotGivenIn: any; calcOutAndSpotGivenIn(uint256,uint256,uint256,uint256,uint256): any; createLiquidity: any; createLiquidity(uint256,uint256[2]): any; exitSwapExternAmountOut: any; exitSwapExternAmountOut(uint256,uint256,uint256,uint256): any; exitSwapPoolAmountIn: any; exitSwapPoolAmountIn(uint256,uint256,uint256,uint256): any; finalize: any; finalize(): any; getExpiredTokensInfo: any; getExpiredTokensInfo(address,uint256): any; getFYTAddress: any; getFYTAddress(): any; getFutureAddress: any; getFutureAddress(): any; getLPTokenId: any; getLPTokenId(uint256,uint256,uint256): any; getPTAddress: any; getPTAddress(): any; getPTWeightInPair: any; getPTWeightInPair(): any; getPairWithID: any; getPairWithID(uint256): any; getSpotPrice: any; getSpotPrice(uint256,uint256,uint256): any; getUnderlyingOfIBTAddress: any; getUnderlyingOfIBTAddress(): any; joinSwapExternAmountIn: any; joinSwapExternAmountIn(uint256,uint256,uint256,uint256): any; joinSwapPoolAmountOut: any; joinSwapPoolAmountOut(uint256,uint256,uint256,uint256): any; removeLiquidity: any; removeLiquidity(uint256,uint256,uint256[2]): any; setSwappingFees: any; setSwappingFees(uint256): any; swapExactAmountIn: any; swapExactAmountIn(uint256,uint256,uint256,uint256,uint256,address): any; swapExactAmountOut: any; swapExactAmountOut(uint256,uint256,uint256,uint256,uint256,address): any; switchPeriod: any; switchPeriod(): any; togglePauseAmm: any; togglePauseAmm(): any; withdrawExpiredToken: any; withdrawExpiredToken(address,uint256): any }

Type declaration

  • addLiquidity:function
    • addLiquidity(_pairID: BigNumberish, _poolAmountOut: BigNumberish, _maxAmountsIn: [BigNumberish, BigNumberish], overrides?: CallOverrides): Promise<void>
    • Parameters

      • _pairID: BigNumberish
      • _poolAmountOut: BigNumberish
      • _maxAmountsIn: [BigNumberish, BigNumberish]
      • Optional overrides: CallOverrides

      Returns Promise<void>

  • addLiquidity(uint256,uint256,uint256[2]):function
    • addLiquidity(uint256,uint256,uint256[2])(_pairID: BigNumberish, _poolAmountOut: BigNumberish, _maxAmountsIn: [BigNumberish, BigNumberish], overrides?: CallOverrides): Promise<void>
    • Parameters

      • _pairID: BigNumberish
      • _poolAmountOut: BigNumberish
      • _maxAmountsIn: [BigNumberish, BigNumberish]
      • Optional overrides: CallOverrides

      Returns Promise<void>

  • ammId:function
    • ammId(overrides?: CallOverrides): Promise<BigNumber>
    • Parameters

      • Optional overrides: CallOverrides

      Returns Promise<BigNumber>

  • ammId():function
    • ammId()(overrides?: CallOverrides): Promise<BigNumber>
    • Parameters

      • Optional overrides: CallOverrides

      Returns Promise<BigNumber>

  • calcInAndSpotGivenOut:function
    • calcInAndSpotGivenOut(_pairID: BigNumberish, _tokenIn: BigNumberish, _maxAmountIn: BigNumberish, _tokenOut: BigNumberish, _tokenAmountOut: BigNumberish, overrides?: CallOverrides): Promise<[BigNumber, BigNumber] & { spotPriceAfter: BigNumber; tokenAmountIn: BigNumber }>
    • Parameters

      • _pairID: BigNumberish
      • _tokenIn: BigNumberish
      • _maxAmountIn: BigNumberish
      • _tokenOut: BigNumberish
      • _tokenAmountOut: BigNumberish
      • Optional overrides: CallOverrides

      Returns Promise<[BigNumber, BigNumber] & { spotPriceAfter: BigNumber; tokenAmountIn: BigNumber }>

  • calcInAndSpotGivenOut(uint256,uint256,uint256,uint256,uint256):function
    • calcInAndSpotGivenOut(uint256,uint256,uint256,uint256,uint256)(_pairID: BigNumberish, _tokenIn: BigNumberish, _maxAmountIn: BigNumberish, _tokenOut: BigNumberish, _tokenAmountOut: BigNumberish, overrides?: CallOverrides): Promise<[BigNumber, BigNumber] & { spotPriceAfter: BigNumber; tokenAmountIn: BigNumber }>
    • Parameters

      • _pairID: BigNumberish
      • _tokenIn: BigNumberish
      • _maxAmountIn: BigNumberish
      • _tokenOut: BigNumberish
      • _tokenAmountOut: BigNumberish
      • Optional overrides: CallOverrides

      Returns Promise<[BigNumber, BigNumber] & { spotPriceAfter: BigNumber; tokenAmountIn: BigNumber }>

  • calcOutAndSpotGivenIn:function
    • calcOutAndSpotGivenIn(_pairID: BigNumberish, _tokenIn: BigNumberish, _tokenAmountIn: BigNumberish, _tokenOut: BigNumberish, _minAmountOut: BigNumberish, overrides?: CallOverrides): Promise<[BigNumber, BigNumber] & { spotPriceAfter: BigNumber; tokenAmountOut: BigNumber }>
    • Parameters

      • _pairID: BigNumberish
      • _tokenIn: BigNumberish
      • _tokenAmountIn: BigNumberish
      • _tokenOut: BigNumberish
      • _minAmountOut: BigNumberish
      • Optional overrides: CallOverrides

      Returns Promise<[BigNumber, BigNumber] & { spotPriceAfter: BigNumber; tokenAmountOut: BigNumber }>

  • calcOutAndSpotGivenIn(uint256,uint256,uint256,uint256,uint256):function
    • calcOutAndSpotGivenIn(uint256,uint256,uint256,uint256,uint256)(_pairID: BigNumberish, _tokenIn: BigNumberish, _tokenAmountIn: BigNumberish, _tokenOut: BigNumberish, _minAmountOut: BigNumberish, overrides?: CallOverrides): Promise<[BigNumber, BigNumber] & { spotPriceAfter: BigNumber; tokenAmountOut: BigNumber }>
    • Parameters

      • _pairID: BigNumberish
      • _tokenIn: BigNumberish
      • _tokenAmountIn: BigNumberish
      • _tokenOut: BigNumberish
      • _minAmountOut: BigNumberish
      • Optional overrides: CallOverrides

      Returns Promise<[BigNumber, BigNumber] & { spotPriceAfter: BigNumber; tokenAmountOut: BigNumber }>

  • createLiquidity:function
    • createLiquidity(_pairID: BigNumberish, _tokenAmounts: [BigNumberish, BigNumberish], overrides?: CallOverrides): Promise<void>
    • Parameters

      • _pairID: BigNumberish
      • _tokenAmounts: [BigNumberish, BigNumberish]
      • Optional overrides: CallOverrides

      Returns Promise<void>

  • createLiquidity(uint256,uint256[2]):function
    • createLiquidity(uint256,uint256[2])(_pairID: BigNumberish, _tokenAmounts: [BigNumberish, BigNumberish], overrides?: CallOverrides): Promise<void>
    • Parameters

      • _pairID: BigNumberish
      • _tokenAmounts: [BigNumberish, BigNumberish]
      • Optional overrides: CallOverrides

      Returns Promise<void>

  • exitSwapExternAmountOut:function
    • exitSwapExternAmountOut(_pairID: BigNumberish, _tokenOut: BigNumberish, _tokenAmountOut: BigNumberish, _maxPoolAmountIn: BigNumberish, overrides?: CallOverrides): Promise<BigNumber>
    • Parameters

      • _pairID: BigNumberish
      • _tokenOut: BigNumberish
      • _tokenAmountOut: BigNumberish
      • _maxPoolAmountIn: BigNumberish
      • Optional overrides: CallOverrides

      Returns Promise<BigNumber>

  • exitSwapExternAmountOut(uint256,uint256,uint256,uint256):function
    • exitSwapExternAmountOut(uint256,uint256,uint256,uint256)(_pairID: BigNumberish, _tokenOut: BigNumberish, _tokenAmountOut: BigNumberish, _maxPoolAmountIn: BigNumberish, overrides?: CallOverrides): Promise<BigNumber>
    • Parameters

      • _pairID: BigNumberish
      • _tokenOut: BigNumberish
      • _tokenAmountOut: BigNumberish
      • _maxPoolAmountIn: BigNumberish
      • Optional overrides: CallOverrides

      Returns Promise<BigNumber>

  • exitSwapPoolAmountIn:function
    • exitSwapPoolAmountIn(_pairID: BigNumberish, _tokenOut: BigNumberish, _poolAmountIn: BigNumberish, _minAmountOut: BigNumberish, overrides?: CallOverrides): Promise<BigNumber>
    • Parameters

      • _pairID: BigNumberish
      • _tokenOut: BigNumberish
      • _poolAmountIn: BigNumberish
      • _minAmountOut: BigNumberish
      • Optional overrides: CallOverrides

      Returns Promise<BigNumber>

  • exitSwapPoolAmountIn(uint256,uint256,uint256,uint256):function
    • exitSwapPoolAmountIn(uint256,uint256,uint256,uint256)(_pairID: BigNumberish, _tokenOut: BigNumberish, _poolAmountIn: BigNumberish, _minAmountOut: BigNumberish, overrides?: CallOverrides): Promise<BigNumber>
    • Parameters

      • _pairID: BigNumberish
      • _tokenOut: BigNumberish
      • _poolAmountIn: BigNumberish
      • _minAmountOut: BigNumberish
      • Optional overrides: CallOverrides

      Returns Promise<BigNumber>

  • finalize:function
    • finalize(overrides?: CallOverrides): Promise<void>
    • Parameters

      • Optional overrides: CallOverrides

      Returns Promise<void>

  • finalize():function
    • finalize()(overrides?: CallOverrides): Promise<void>
    • Parameters

      • Optional overrides: CallOverrides

      Returns Promise<void>

  • getExpiredTokensInfo:function
    • getExpiredTokensInfo(_user: string, _lpTokenId: BigNumberish, overrides?: CallOverrides): Promise<[BigNumber, BigNumber, BigNumber]>
    • Parameters

      • _user: string
      • _lpTokenId: BigNumberish
      • Optional overrides: CallOverrides

      Returns Promise<[BigNumber, BigNumber, BigNumber]>

  • getExpiredTokensInfo(address,uint256):function
    • getExpiredTokensInfo(address,uint256)(_user: string, _lpTokenId: BigNumberish, overrides?: CallOverrides): Promise<[BigNumber, BigNumber, BigNumber]>
    • Parameters

      • _user: string
      • _lpTokenId: BigNumberish
      • Optional overrides: CallOverrides

      Returns Promise<[BigNumber, BigNumber, BigNumber]>

  • getFYTAddress:function
    • getFYTAddress(overrides?: CallOverrides): Promise<string>
    • Parameters

      • Optional overrides: CallOverrides

      Returns Promise<string>

  • getFYTAddress():function
    • getFYTAddress()(overrides?: CallOverrides): Promise<string>
    • Parameters

      • Optional overrides: CallOverrides

      Returns Promise<string>

  • getFutureAddress:function
    • getFutureAddress(overrides?: CallOverrides): Promise<string>
    • Parameters

      • Optional overrides: CallOverrides

      Returns Promise<string>

  • getFutureAddress():function
    • getFutureAddress()(overrides?: CallOverrides): Promise<string>
    • Parameters

      • Optional overrides: CallOverrides

      Returns Promise<string>

  • getLPTokenId:function
    • getLPTokenId(_ammId: BigNumberish, _periodIndex: BigNumberish, _pairID: BigNumberish, overrides?: CallOverrides): Promise<BigNumber>
    • Parameters

      • _ammId: BigNumberish
      • _periodIndex: BigNumberish
      • _pairID: BigNumberish
      • Optional overrides: CallOverrides

      Returns Promise<BigNumber>

  • getLPTokenId(uint256,uint256,uint256):function
    • getLPTokenId(uint256,uint256,uint256)(_ammId: BigNumberish, _periodIndex: BigNumberish, _pairID: BigNumberish, overrides?: CallOverrides): Promise<BigNumber>
    • Parameters

      • _ammId: BigNumberish
      • _periodIndex: BigNumberish
      • _pairID: BigNumberish
      • Optional overrides: CallOverrides

      Returns Promise<BigNumber>

  • getPTAddress:function
    • getPTAddress(overrides?: CallOverrides): Promise<string>
    • Parameters

      • Optional overrides: CallOverrides

      Returns Promise<string>

  • getPTAddress():function
    • getPTAddress()(overrides?: CallOverrides): Promise<string>
    • Parameters

      • Optional overrides: CallOverrides

      Returns Promise<string>

  • getPTWeightInPair:function
    • getPTWeightInPair(overrides?: CallOverrides): Promise<BigNumber>
    • Parameters

      • Optional overrides: CallOverrides

      Returns Promise<BigNumber>

  • getPTWeightInPair():function
    • getPTWeightInPair()(overrides?: CallOverrides): Promise<BigNumber>
    • Parameters

      • Optional overrides: CallOverrides

      Returns Promise<BigNumber>

  • getPairWithID:function
    • getPairWithID(_pairID: BigNumberish, overrides?: CallOverrides): Promise<[string, [BigNumber, BigNumber], [BigNumber, BigNumber], boolean] & { balances: [BigNumber, BigNumber]; liquidityIsInitialized: boolean; tokenAddress: string; weights: [BigNumber, BigNumber] }>
    • Parameters

      • _pairID: BigNumberish
      • Optional overrides: CallOverrides

      Returns Promise<[string, [BigNumber, BigNumber], [BigNumber, BigNumber], boolean] & { balances: [BigNumber, BigNumber]; liquidityIsInitialized: boolean; tokenAddress: string; weights: [BigNumber, BigNumber] }>

  • getPairWithID(uint256):function
    • getPairWithID(uint256)(_pairID: BigNumberish, overrides?: CallOverrides): Promise<[string, [BigNumber, BigNumber], [BigNumber, BigNumber], boolean] & { balances: [BigNumber, BigNumber]; liquidityIsInitialized: boolean; tokenAddress: string; weights: [BigNumber, BigNumber] }>
    • Parameters

      • _pairID: BigNumberish
      • Optional overrides: CallOverrides

      Returns Promise<[string, [BigNumber, BigNumber], [BigNumber, BigNumber], boolean] & { balances: [BigNumber, BigNumber]; liquidityIsInitialized: boolean; tokenAddress: string; weights: [BigNumber, BigNumber] }>

  • getSpotPrice:function
    • getSpotPrice(_pairID: BigNumberish, _tokenIn: BigNumberish, _tokenOut: BigNumberish, overrides?: CallOverrides): Promise<BigNumber>
    • Parameters

      • _pairID: BigNumberish
      • _tokenIn: BigNumberish
      • _tokenOut: BigNumberish
      • Optional overrides: CallOverrides

      Returns Promise<BigNumber>

  • getSpotPrice(uint256,uint256,uint256):function
    • getSpotPrice(uint256,uint256,uint256)(_pairID: BigNumberish, _tokenIn: BigNumberish, _tokenOut: BigNumberish, overrides?: CallOverrides): Promise<BigNumber>
    • Parameters

      • _pairID: BigNumberish
      • _tokenIn: BigNumberish
      • _tokenOut: BigNumberish
      • Optional overrides: CallOverrides

      Returns Promise<BigNumber>

  • getUnderlyingOfIBTAddress:function
    • getUnderlyingOfIBTAddress(overrides?: CallOverrides): Promise<string>
    • Parameters

      • Optional overrides: CallOverrides

      Returns Promise<string>

  • getUnderlyingOfIBTAddress():function
    • getUnderlyingOfIBTAddress()(overrides?: CallOverrides): Promise<string>
    • Parameters

      • Optional overrides: CallOverrides

      Returns Promise<string>

  • joinSwapExternAmountIn:function
    • joinSwapExternAmountIn(_pairID: BigNumberish, _tokenIn: BigNumberish, _tokenAmountIn: BigNumberish, _minPoolAmountOut: BigNumberish, overrides?: CallOverrides): Promise<BigNumber>
    • Parameters

      • _pairID: BigNumberish
      • _tokenIn: BigNumberish
      • _tokenAmountIn: BigNumberish
      • _minPoolAmountOut: BigNumberish
      • Optional overrides: CallOverrides

      Returns Promise<BigNumber>

  • joinSwapExternAmountIn(uint256,uint256,uint256,uint256):function
    • joinSwapExternAmountIn(uint256,uint256,uint256,uint256)(_pairID: BigNumberish, _tokenIn: BigNumberish, _tokenAmountIn: BigNumberish, _minPoolAmountOut: BigNumberish, overrides?: CallOverrides): Promise<BigNumber>
    • Parameters

      • _pairID: BigNumberish
      • _tokenIn: BigNumberish
      • _tokenAmountIn: BigNumberish
      • _minPoolAmountOut: BigNumberish
      • Optional overrides: CallOverrides

      Returns Promise<BigNumber>

  • joinSwapPoolAmountOut:function
    • joinSwapPoolAmountOut(_pairID: BigNumberish, _tokenIn: BigNumberish, _poolAmountOut: BigNumberish, _maxAmountIn: BigNumberish, overrides?: CallOverrides): Promise<BigNumber>
    • Parameters

      • _pairID: BigNumberish
      • _tokenIn: BigNumberish
      • _poolAmountOut: BigNumberish
      • _maxAmountIn: BigNumberish
      • Optional overrides: CallOverrides

      Returns Promise<BigNumber>

  • joinSwapPoolAmountOut(uint256,uint256,uint256,uint256):function
    • joinSwapPoolAmountOut(uint256,uint256,uint256,uint256)(_pairID: BigNumberish, _tokenIn: BigNumberish, _poolAmountOut: BigNumberish, _maxAmountIn: BigNumberish, overrides?: CallOverrides): Promise<BigNumber>
    • Parameters

      • _pairID: BigNumberish
      • _tokenIn: BigNumberish
      • _poolAmountOut: BigNumberish
      • _maxAmountIn: BigNumberish
      • Optional overrides: CallOverrides

      Returns Promise<BigNumber>

  • removeLiquidity:function
    • removeLiquidity(_pairID: BigNumberish, _poolAmountIn: BigNumberish, _minAmountsOut: [BigNumberish, BigNumberish], overrides?: CallOverrides): Promise<void>
    • Parameters

      • _pairID: BigNumberish
      • _poolAmountIn: BigNumberish
      • _minAmountsOut: [BigNumberish, BigNumberish]
      • Optional overrides: CallOverrides

      Returns Promise<void>

  • removeLiquidity(uint256,uint256,uint256[2]):function
    • removeLiquidity(uint256,uint256,uint256[2])(_pairID: BigNumberish, _poolAmountIn: BigNumberish, _minAmountsOut: [BigNumberish, BigNumberish], overrides?: CallOverrides): Promise<void>
    • Parameters

      • _pairID: BigNumberish
      • _poolAmountIn: BigNumberish
      • _minAmountsOut: [BigNumberish, BigNumberish]
      • Optional overrides: CallOverrides

      Returns Promise<void>

  • setSwappingFees:function
    • setSwappingFees(_swapFee: BigNumberish, overrides?: CallOverrides): Promise<void>
    • Parameters

      • _swapFee: BigNumberish
      • Optional overrides: CallOverrides

      Returns Promise<void>

  • setSwappingFees(uint256):function
    • setSwappingFees(uint256)(_swapFee: BigNumberish, overrides?: CallOverrides): Promise<void>
    • Parameters

      • _swapFee: BigNumberish
      • Optional overrides: CallOverrides

      Returns Promise<void>

  • swapExactAmountIn:function
    • swapExactAmountIn(_pairID: BigNumberish, _tokenIn: BigNumberish, _tokenAmountIn: BigNumberish, _tokenOut: BigNumberish, _minAmountOut: BigNumberish, _to: string, overrides?: CallOverrides): Promise<[BigNumber, BigNumber] & { spotPriceAfter: BigNumber; tokenAmountOut: BigNumber }>
    • Parameters

      • _pairID: BigNumberish
      • _tokenIn: BigNumberish
      • _tokenAmountIn: BigNumberish
      • _tokenOut: BigNumberish
      • _minAmountOut: BigNumberish
      • _to: string
      • Optional overrides: CallOverrides

      Returns Promise<[BigNumber, BigNumber] & { spotPriceAfter: BigNumber; tokenAmountOut: BigNumber }>

  • swapExactAmountIn(uint256,uint256,uint256,uint256,uint256,address):function
    • swapExactAmountIn(uint256,uint256,uint256,uint256,uint256,address)(_pairID: BigNumberish, _tokenIn: BigNumberish, _tokenAmountIn: BigNumberish, _tokenOut: BigNumberish, _minAmountOut: BigNumberish, _to: string, overrides?: CallOverrides): Promise<[BigNumber, BigNumber] & { spotPriceAfter: BigNumber; tokenAmountOut: BigNumber }>
    • Parameters

      • _pairID: BigNumberish
      • _tokenIn: BigNumberish
      • _tokenAmountIn: BigNumberish
      • _tokenOut: BigNumberish
      • _minAmountOut: BigNumberish
      • _to: string
      • Optional overrides: CallOverrides

      Returns Promise<[BigNumber, BigNumber] & { spotPriceAfter: BigNumber; tokenAmountOut: BigNumber }>

  • swapExactAmountOut:function
    • swapExactAmountOut(_pairID: BigNumberish, _tokenIn: BigNumberish, _maxAmountIn: BigNumberish, _tokenOut: BigNumberish, _tokenAmountOut: BigNumberish, _to: string, overrides?: CallOverrides): Promise<[BigNumber, BigNumber] & { spotPriceAfter: BigNumber; tokenAmountIn: BigNumber }>
    • Parameters

      • _pairID: BigNumberish
      • _tokenIn: BigNumberish
      • _maxAmountIn: BigNumberish
      • _tokenOut: BigNumberish
      • _tokenAmountOut: BigNumberish
      • _to: string
      • Optional overrides: CallOverrides

      Returns Promise<[BigNumber, BigNumber] & { spotPriceAfter: BigNumber; tokenAmountIn: BigNumber }>

  • swapExactAmountOut(uint256,uint256,uint256,uint256,uint256,address):function
    • swapExactAmountOut(uint256,uint256,uint256,uint256,uint256,address)(_pairID: BigNumberish, _tokenIn: BigNumberish, _maxAmountIn: BigNumberish, _tokenOut: BigNumberish, _tokenAmountOut: BigNumberish, _to: string, overrides?: CallOverrides): Promise<[BigNumber, BigNumber] & { spotPriceAfter: BigNumber; tokenAmountIn: BigNumber }>
    • Parameters

      • _pairID: BigNumberish
      • _tokenIn: BigNumberish
      • _maxAmountIn: BigNumberish
      • _tokenOut: BigNumberish
      • _tokenAmountOut: BigNumberish
      • _to: string
      • Optional overrides: CallOverrides

      Returns Promise<[BigNumber, BigNumber] & { spotPriceAfter: BigNumber; tokenAmountIn: BigNumber }>

  • switchPeriod:function
    • switchPeriod(overrides?: CallOverrides): Promise<void>
    • Parameters

      • Optional overrides: CallOverrides

      Returns Promise<void>

  • switchPeriod():function
    • switchPeriod()(overrides?: CallOverrides): Promise<void>
    • Parameters

      • Optional overrides: CallOverrides

      Returns Promise<void>

  • togglePauseAmm:function
    • togglePauseAmm(overrides?: CallOverrides): Promise<void>
    • Parameters

      • Optional overrides: CallOverrides

      Returns Promise<void>

  • togglePauseAmm():function
    • togglePauseAmm()(overrides?: CallOverrides): Promise<void>
    • Parameters

      • Optional overrides: CallOverrides

      Returns Promise<void>

  • withdrawExpiredToken:function
    • withdrawExpiredToken(_user: string, _lpTokenId: BigNumberish, overrides?: CallOverrides): Promise<void>
    • Parameters

      • _user: string
      • _lpTokenId: BigNumberish
      • Optional overrides: CallOverrides

      Returns Promise<void>

  • withdrawExpiredToken(address,uint256):function
    • withdrawExpiredToken(address,uint256)(_user: string, _lpTokenId: BigNumberish, overrides?: CallOverrides): Promise<void>
    • Parameters

      • _user: string
      • _lpTokenId: BigNumberish
      • Optional overrides: CallOverrides

      Returns Promise<void>

deployTransaction: TransactionResponse
estimateGas: { addLiquidity: any; addLiquidity(uint256,uint256,uint256[2]): any; ammId: any; ammId(): any; calcInAndSpotGivenOut: any; calcInAndSpotGivenOut(uint256,uint256,uint256,uint256,uint256): any; calcOutAndSpotGivenIn: any; calcOutAndSpotGivenIn(uint256,uint256,uint256,uint256,uint256): any; createLiquidity: any; createLiquidity(uint256,uint256[2]): any; exitSwapExternAmountOut: any; exitSwapExternAmountOut(uint256,uint256,uint256,uint256): any; exitSwapPoolAmountIn: any; exitSwapPoolAmountIn(uint256,uint256,uint256,uint256): any; finalize: any; finalize(): any; getExpiredTokensInfo: any; getExpiredTokensInfo(address,uint256): any; getFYTAddress: any; getFYTAddress(): any; getFutureAddress: any; getFutureAddress(): any; getLPTokenId: any; getLPTokenId(uint256,uint256,uint256): any; getPTAddress: any; getPTAddress(): any; getPTWeightInPair: any; getPTWeightInPair(): any; getPairWithID: any; getPairWithID(uint256): any; getSpotPrice: any; getSpotPrice(uint256,uint256,uint256): any; getUnderlyingOfIBTAddress: any; getUnderlyingOfIBTAddress(): any; joinSwapExternAmountIn: any; joinSwapExternAmountIn(uint256,uint256,uint256,uint256): any; joinSwapPoolAmountOut: any; joinSwapPoolAmountOut(uint256,uint256,uint256,uint256): any; removeLiquidity: any; removeLiquidity(uint256,uint256,uint256[2]): any; setSwappingFees: any; setSwappingFees(uint256): any; swapExactAmountIn: any; swapExactAmountIn(uint256,uint256,uint256,uint256,uint256,address): any; swapExactAmountOut: any; swapExactAmountOut(uint256,uint256,uint256,uint256,uint256,address): any; switchPeriod: any; switchPeriod(): any; togglePauseAmm: any; togglePauseAmm(): any; withdrawExpiredToken: any; withdrawExpiredToken(address,uint256): any }

Type declaration

  • addLiquidity:function
    • addLiquidity(_pairID: BigNumberish, _poolAmountOut: BigNumberish, _maxAmountsIn: [BigNumberish, BigNumberish], overrides?: Overrides & { from?: string | Promise<string> }): Promise<BigNumber>
    • Parameters

      • _pairID: BigNumberish
      • _poolAmountOut: BigNumberish
      • _maxAmountsIn: [BigNumberish, BigNumberish]
      • Optional overrides: Overrides & { from?: string | Promise<string> }

      Returns Promise<BigNumber>

  • addLiquidity(uint256,uint256,uint256[2]):function
    • addLiquidity(uint256,uint256,uint256[2])(_pairID: BigNumberish, _poolAmountOut: BigNumberish, _maxAmountsIn: [BigNumberish, BigNumberish], overrides?: Overrides & { from?: string | Promise<string> }): Promise<BigNumber>
    • Parameters

      • _pairID: BigNumberish
      • _poolAmountOut: BigNumberish
      • _maxAmountsIn: [BigNumberish, BigNumberish]
      • Optional overrides: Overrides & { from?: string | Promise<string> }

      Returns Promise<BigNumber>

  • ammId:function
    • ammId(overrides?: Overrides & { from?: string | Promise<string> }): Promise<BigNumber>
    • Parameters

      • Optional overrides: Overrides & { from?: string | Promise<string> }

      Returns Promise<BigNumber>

  • ammId():function
    • ammId()(overrides?: Overrides & { from?: string | Promise<string> }): Promise<BigNumber>
    • Parameters

      • Optional overrides: Overrides & { from?: string | Promise<string> }

      Returns Promise<BigNumber>

  • calcInAndSpotGivenOut:function
    • calcInAndSpotGivenOut(_pairID: BigNumberish, _tokenIn: BigNumberish, _maxAmountIn: BigNumberish, _tokenOut: BigNumberish, _tokenAmountOut: BigNumberish, overrides?: CallOverrides): Promise<BigNumber>
    • Parameters

      • _pairID: BigNumberish
      • _tokenIn: BigNumberish
      • _maxAmountIn: BigNumberish
      • _tokenOut: BigNumberish
      • _tokenAmountOut: BigNumberish
      • Optional overrides: CallOverrides

      Returns Promise<BigNumber>

  • calcInAndSpotGivenOut(uint256,uint256,uint256,uint256,uint256):function
    • calcInAndSpotGivenOut(uint256,uint256,uint256,uint256,uint256)(_pairID: BigNumberish, _tokenIn: BigNumberish, _maxAmountIn: BigNumberish, _tokenOut: BigNumberish, _tokenAmountOut: BigNumberish, overrides?: CallOverrides): Promise<BigNumber>
    • Parameters

      • _pairID: BigNumberish
      • _tokenIn: BigNumberish
      • _maxAmountIn: BigNumberish
      • _tokenOut: BigNumberish
      • _tokenAmountOut: BigNumberish
      • Optional overrides: CallOverrides

      Returns Promise<BigNumber>

  • calcOutAndSpotGivenIn:function
    • calcOutAndSpotGivenIn(_pairID: BigNumberish, _tokenIn: BigNumberish, _tokenAmountIn: BigNumberish, _tokenOut: BigNumberish, _minAmountOut: BigNumberish, overrides?: CallOverrides): Promise<BigNumber>
    • Parameters

      • _pairID: BigNumberish
      • _tokenIn: BigNumberish
      • _tokenAmountIn: BigNumberish
      • _tokenOut: BigNumberish
      • _minAmountOut: BigNumberish
      • Optional overrides: CallOverrides

      Returns Promise<BigNumber>

  • calcOutAndSpotGivenIn(uint256,uint256,uint256,uint256,uint256):function
    • calcOutAndSpotGivenIn(uint256,uint256,uint256,uint256,uint256)(_pairID: BigNumberish, _tokenIn: BigNumberish, _tokenAmountIn: BigNumberish, _tokenOut: BigNumberish, _minAmountOut: BigNumberish, overrides?: CallOverrides): Promise<BigNumber>
    • Parameters

      • _pairID: BigNumberish
      • _tokenIn: BigNumberish
      • _tokenAmountIn: BigNumberish
      • _tokenOut: BigNumberish
      • _minAmountOut: BigNumberish
      • Optional overrides: CallOverrides

      Returns Promise<BigNumber>

  • createLiquidity:function
    • createLiquidity(_pairID: BigNumberish, _tokenAmounts: [BigNumberish, BigNumberish], overrides?: Overrides & { from?: string | Promise<string> }): Promise<BigNumber>
    • Parameters

      • _pairID: BigNumberish
      • _tokenAmounts: [BigNumberish, BigNumberish]
      • Optional overrides: Overrides & { from?: string | Promise<string> }

      Returns Promise<BigNumber>

  • createLiquidity(uint256,uint256[2]):function
    • createLiquidity(uint256,uint256[2])(_pairID: BigNumberish, _tokenAmounts: [BigNumberish, BigNumberish], overrides?: Overrides & { from?: string | Promise<string> }): Promise<BigNumber>
    • Parameters

      • _pairID: BigNumberish
      • _tokenAmounts: [BigNumberish, BigNumberish]
      • Optional overrides: Overrides & { from?: string | Promise<string> }

      Returns Promise<BigNumber>

  • exitSwapExternAmountOut:function
    • exitSwapExternAmountOut(_pairID: BigNumberish, _tokenOut: BigNumberish, _tokenAmountOut: BigNumberish, _maxPoolAmountIn: BigNumberish, overrides?: Overrides & { from?: string | Promise<string> }): Promise<BigNumber>
    • Parameters

      • _pairID: BigNumberish
      • _tokenOut: BigNumberish
      • _tokenAmountOut: BigNumberish
      • _maxPoolAmountIn: BigNumberish
      • Optional overrides: Overrides & { from?: string | Promise<string> }

      Returns Promise<BigNumber>

  • exitSwapExternAmountOut(uint256,uint256,uint256,uint256):function
    • exitSwapExternAmountOut(uint256,uint256,uint256,uint256)(_pairID: BigNumberish, _tokenOut: BigNumberish, _tokenAmountOut: BigNumberish, _maxPoolAmountIn: BigNumberish, overrides?: Overrides & { from?: string | Promise<string> }): Promise<BigNumber>
    • Parameters

      • _pairID: BigNumberish
      • _tokenOut: BigNumberish
      • _tokenAmountOut: BigNumberish
      • _maxPoolAmountIn: BigNumberish
      • Optional overrides: Overrides & { from?: string | Promise<string> }

      Returns Promise<BigNumber>

  • exitSwapPoolAmountIn:function
    • exitSwapPoolAmountIn(_pairID: BigNumberish, _tokenOut: BigNumberish, _poolAmountIn: BigNumberish, _minAmountOut: BigNumberish, overrides?: Overrides & { from?: string | Promise<string> }): Promise<BigNumber>
    • Parameters

      • _pairID: BigNumberish
      • _tokenOut: BigNumberish
      • _poolAmountIn: BigNumberish
      • _minAmountOut: BigNumberish
      • Optional overrides: Overrides & { from?: string | Promise<string> }

      Returns Promise<BigNumber>

  • exitSwapPoolAmountIn(uint256,uint256,uint256,uint256):function
    • exitSwapPoolAmountIn(uint256,uint256,uint256,uint256)(_pairID: BigNumberish, _tokenOut: BigNumberish, _poolAmountIn: BigNumberish, _minAmountOut: BigNumberish, overrides?: Overrides & { from?: string | Promise<string> }): Promise<BigNumber>
    • Parameters

      • _pairID: BigNumberish
      • _tokenOut: BigNumberish
      • _poolAmountIn: BigNumberish
      • _minAmountOut: BigNumberish
      • Optional overrides: Overrides & { from?: string | Promise<string> }

      Returns Promise<BigNumber>

  • finalize:function
    • finalize(overrides?: Overrides & { from?: string | Promise<string> }): Promise<BigNumber>
    • Parameters

      • Optional overrides: Overrides & { from?: string | Promise<string> }

      Returns Promise<BigNumber>

  • finalize():function
    • finalize()(overrides?: Overrides & { from?: string | Promise<string> }): Promise<BigNumber>
    • Parameters

      • Optional overrides: Overrides & { from?: string | Promise<string> }

      Returns Promise<BigNumber>

  • getExpiredTokensInfo:function
    • getExpiredTokensInfo(_user: string, _lpTokenId: BigNumberish, overrides?: CallOverrides): Promise<BigNumber>
    • Parameters

      • _user: string
      • _lpTokenId: BigNumberish
      • Optional overrides: CallOverrides

      Returns Promise<BigNumber>

  • getExpiredTokensInfo(address,uint256):function
    • getExpiredTokensInfo(address,uint256)(_user: string, _lpTokenId: BigNumberish, overrides?: CallOverrides): Promise<BigNumber>
    • Parameters

      • _user: string
      • _lpTokenId: BigNumberish
      • Optional overrides: CallOverrides

      Returns Promise<BigNumber>

  • getFYTAddress:function
    • getFYTAddress(overrides?: CallOverrides): Promise<BigNumber>
    • Parameters

      • Optional overrides: CallOverrides

      Returns Promise<BigNumber>

  • getFYTAddress():function
    • getFYTAddress()(overrides?: CallOverrides): Promise<BigNumber>
    • Parameters

      • Optional overrides: CallOverrides

      Returns Promise<BigNumber>

  • getFutureAddress:function
    • getFutureAddress(overrides?: CallOverrides): Promise<BigNumber>
    • Parameters

      • Optional overrides: CallOverrides

      Returns Promise<BigNumber>

  • getFutureAddress():function
    • getFutureAddress()(overrides?: CallOverrides): Promise<BigNumber>
    • Parameters

      • Optional overrides: CallOverrides

      Returns Promise<BigNumber>

  • getLPTokenId:function
    • getLPTokenId(_ammId: BigNumberish, _periodIndex: BigNumberish, _pairID: BigNumberish, overrides?: CallOverrides): Promise<BigNumber>
    • Parameters

      • _ammId: BigNumberish
      • _periodIndex: BigNumberish
      • _pairID: BigNumberish
      • Optional overrides: CallOverrides

      Returns Promise<BigNumber>

  • getLPTokenId(uint256,uint256,uint256):function
    • getLPTokenId(uint256,uint256,uint256)(_ammId: BigNumberish, _periodIndex: BigNumberish, _pairID: BigNumberish, overrides?: CallOverrides): Promise<BigNumber>
    • Parameters

      • _ammId: BigNumberish
      • _periodIndex: BigNumberish
      • _pairID: BigNumberish
      • Optional overrides: CallOverrides

      Returns Promise<BigNumber>

  • getPTAddress:function
    • getPTAddress(overrides?: CallOverrides): Promise<BigNumber>
    • Parameters

      • Optional overrides: CallOverrides

      Returns Promise<BigNumber>

  • getPTAddress():function
    • getPTAddress()(overrides?: CallOverrides): Promise<BigNumber>
    • Parameters

      • Optional overrides: CallOverrides

      Returns Promise<BigNumber>

  • getPTWeightInPair:function
    • getPTWeightInPair(overrides?: CallOverrides): Promise<BigNumber>
    • Parameters

      • Optional overrides: CallOverrides

      Returns Promise<BigNumber>

  • getPTWeightInPair():function
    • getPTWeightInPair()(overrides?: CallOverrides): Promise<BigNumber>
    • Parameters

      • Optional overrides: CallOverrides

      Returns Promise<BigNumber>

  • getPairWithID:function
    • getPairWithID(_pairID: BigNumberish, overrides?: CallOverrides): Promise<BigNumber>
    • Parameters

      • _pairID: BigNumberish
      • Optional overrides: CallOverrides

      Returns Promise<BigNumber>

  • getPairWithID(uint256):function
    • getPairWithID(uint256)(_pairID: BigNumberish, overrides?: CallOverrides): Promise<BigNumber>
    • Parameters

      • _pairID: BigNumberish
      • Optional overrides: CallOverrides

      Returns Promise<BigNumber>

  • getSpotPrice:function
    • getSpotPrice(_pairID: BigNumberish, _tokenIn: BigNumberish, _tokenOut: BigNumberish, overrides?: CallOverrides): Promise<BigNumber>
    • Parameters

      • _pairID: BigNumberish
      • _tokenIn: BigNumberish
      • _tokenOut: BigNumberish
      • Optional overrides: CallOverrides

      Returns Promise<BigNumber>

  • getSpotPrice(uint256,uint256,uint256):function
    • getSpotPrice(uint256,uint256,uint256)(_pairID: BigNumberish, _tokenIn: BigNumberish, _tokenOut: BigNumberish, overrides?: CallOverrides): Promise<BigNumber>
    • Parameters

      • _pairID: BigNumberish
      • _tokenIn: BigNumberish
      • _tokenOut: BigNumberish
      • Optional overrides: CallOverrides

      Returns Promise<BigNumber>

  • getUnderlyingOfIBTAddress:function
    • getUnderlyingOfIBTAddress(overrides?: CallOverrides): Promise<BigNumber>
    • Parameters

      • Optional overrides: CallOverrides

      Returns Promise<BigNumber>

  • getUnderlyingOfIBTAddress():function
    • getUnderlyingOfIBTAddress()(overrides?: CallOverrides): Promise<BigNumber>
    • Parameters

      • Optional overrides: CallOverrides

      Returns Promise<BigNumber>

  • joinSwapExternAmountIn:function
    • joinSwapExternAmountIn(_pairID: BigNumberish, _tokenIn: BigNumberish, _tokenAmountIn: BigNumberish, _minPoolAmountOut: BigNumberish, overrides?: Overrides & { from?: string | Promise<string> }): Promise<BigNumber>
    • Parameters

      • _pairID: BigNumberish
      • _tokenIn: BigNumberish
      • _tokenAmountIn: BigNumberish
      • _minPoolAmountOut: BigNumberish
      • Optional overrides: Overrides & { from?: string | Promise<string> }

      Returns Promise<BigNumber>

  • joinSwapExternAmountIn(uint256,uint256,uint256,uint256):function
    • joinSwapExternAmountIn(uint256,uint256,uint256,uint256)(_pairID: BigNumberish, _tokenIn: BigNumberish, _tokenAmountIn: BigNumberish, _minPoolAmountOut: BigNumberish, overrides?: Overrides & { from?: string | Promise<string> }): Promise<BigNumber>
    • Parameters

      • _pairID: BigNumberish
      • _tokenIn: BigNumberish
      • _tokenAmountIn: BigNumberish
      • _minPoolAmountOut: BigNumberish
      • Optional overrides: Overrides & { from?: string | Promise<string> }

      Returns Promise<BigNumber>

  • joinSwapPoolAmountOut:function
    • joinSwapPoolAmountOut(_pairID: BigNumberish, _tokenIn: BigNumberish, _poolAmountOut: BigNumberish, _maxAmountIn: BigNumberish, overrides?: Overrides & { from?: string | Promise<string> }): Promise<BigNumber>
    • Parameters

      • _pairID: BigNumberish
      • _tokenIn: BigNumberish
      • _poolAmountOut: BigNumberish
      • _maxAmountIn: BigNumberish
      • Optional overrides: Overrides & { from?: string | Promise<string> }

      Returns Promise<BigNumber>

  • joinSwapPoolAmountOut(uint256,uint256,uint256,uint256):function
    • joinSwapPoolAmountOut(uint256,uint256,uint256,uint256)(_pairID: BigNumberish, _tokenIn: BigNumberish, _poolAmountOut: BigNumberish, _maxAmountIn: BigNumberish, overrides?: Overrides & { from?: string | Promise<string> }): Promise<BigNumber>
    • Parameters

      • _pairID: BigNumberish
      • _tokenIn: BigNumberish
      • _poolAmountOut: BigNumberish
      • _maxAmountIn: BigNumberish
      • Optional overrides: Overrides & { from?: string | Promise<string> }

      Returns Promise<BigNumber>

  • removeLiquidity:function
    • removeLiquidity(_pairID: BigNumberish, _poolAmountIn: BigNumberish, _minAmountsOut: [BigNumberish, BigNumberish], overrides?: Overrides & { from?: string | Promise<string> }): Promise<BigNumber>
    • Parameters

      • _pairID: BigNumberish
      • _poolAmountIn: BigNumberish
      • _minAmountsOut: [BigNumberish, BigNumberish]
      • Optional overrides: Overrides & { from?: string | Promise<string> }

      Returns Promise<BigNumber>

  • removeLiquidity(uint256,uint256,uint256[2]):function
    • removeLiquidity(uint256,uint256,uint256[2])(_pairID: BigNumberish, _poolAmountIn: BigNumberish, _minAmountsOut: [BigNumberish, BigNumberish], overrides?: Overrides & { from?: string | Promise<string> }): Promise<BigNumber>
    • Parameters

      • _pairID: BigNumberish
      • _poolAmountIn: BigNumberish
      • _minAmountsOut: [BigNumberish, BigNumberish]
      • Optional overrides: Overrides & { from?: string | Promise<string> }

      Returns Promise<BigNumber>

  • setSwappingFees:function
    • setSwappingFees(_swapFee: BigNumberish, overrides?: Overrides & { from?: string | Promise<string> }): Promise<BigNumber>
    • Parameters

      • _swapFee: BigNumberish
      • Optional overrides: Overrides & { from?: string | Promise<string> }

      Returns Promise<BigNumber>

  • setSwappingFees(uint256):function
    • setSwappingFees(uint256)(_swapFee: BigNumberish, overrides?: Overrides & { from?: string | Promise<string> }): Promise<BigNumber>
    • Parameters

      • _swapFee: BigNumberish
      • Optional overrides: Overrides & { from?: string | Promise<string> }

      Returns Promise<BigNumber>

  • swapExactAmountIn:function
    • swapExactAmountIn(_pairID: BigNumberish, _tokenIn: BigNumberish, _tokenAmountIn: BigNumberish, _tokenOut: BigNumberish, _minAmountOut: BigNumberish, _to: string, overrides?: Overrides & { from?: string | Promise<string> }): Promise<BigNumber>
    • Parameters

      • _pairID: BigNumberish
      • _tokenIn: BigNumberish
      • _tokenAmountIn: BigNumberish
      • _tokenOut: BigNumberish
      • _minAmountOut: BigNumberish
      • _to: string
      • Optional overrides: Overrides & { from?: string | Promise<string> }

      Returns Promise<BigNumber>

  • swapExactAmountIn(uint256,uint256,uint256,uint256,uint256,address):function
    • swapExactAmountIn(uint256,uint256,uint256,uint256,uint256,address)(_pairID: BigNumberish, _tokenIn: BigNumberish, _tokenAmountIn: BigNumberish, _tokenOut: BigNumberish, _minAmountOut: BigNumberish, _to: string, overrides?: Overrides & { from?: string | Promise<string> }): Promise<BigNumber>
    • Parameters

      • _pairID: BigNumberish
      • _tokenIn: BigNumberish
      • _tokenAmountIn: BigNumberish
      • _tokenOut: BigNumberish
      • _minAmountOut: BigNumberish
      • _to: string
      • Optional overrides: Overrides & { from?: string | Promise<string> }

      Returns Promise<BigNumber>

  • swapExactAmountOut:function
    • swapExactAmountOut(_pairID: BigNumberish, _tokenIn: BigNumberish, _maxAmountIn: BigNumberish, _tokenOut: BigNumberish, _tokenAmountOut: BigNumberish, _to: string, overrides?: Overrides & { from?: string | Promise<string> }): Promise<BigNumber>
    • Parameters

      • _pairID: BigNumberish
      • _tokenIn: BigNumberish
      • _maxAmountIn: BigNumberish
      • _tokenOut: BigNumberish
      • _tokenAmountOut: BigNumberish
      • _to: string
      • Optional overrides: Overrides & { from?: string | Promise<string> }

      Returns Promise<BigNumber>

  • swapExactAmountOut(uint256,uint256,uint256,uint256,uint256,address):function
    • swapExactAmountOut(uint256,uint256,uint256,uint256,uint256,address)(_pairID: BigNumberish, _tokenIn: BigNumberish, _maxAmountIn: BigNumberish, _tokenOut: BigNumberish, _tokenAmountOut: BigNumberish, _to: string, overrides?: Overrides & { from?: string | Promise<string> }): Promise<BigNumber>
    • Parameters

      • _pairID: BigNumberish
      • _tokenIn: BigNumberish
      • _maxAmountIn: BigNumberish
      • _tokenOut: BigNumberish
      • _tokenAmountOut: BigNumberish
      • _to: string
      • Optional overrides: Overrides & { from?: string | Promise<string> }

      Returns Promise<BigNumber>

  • switchPeriod:function
    • switchPeriod(overrides?: Overrides & { from?: string | Promise<string> }): Promise<BigNumber>
    • Parameters

      • Optional overrides: Overrides & { from?: string | Promise<string> }

      Returns Promise<BigNumber>

  • switchPeriod():function
    • switchPeriod()(overrides?: Overrides & { from?: string | Promise<string> }): Promise<BigNumber>
    • Parameters

      • Optional overrides: Overrides & { from?: string | Promise<string> }

      Returns Promise<BigNumber>

  • togglePauseAmm:function
    • togglePauseAmm(overrides?: Overrides & { from?: string | Promise<string> }): Promise<BigNumber>
    • Parameters

      • Optional overrides: Overrides & { from?: string | Promise<string> }

      Returns Promise<BigNumber>

  • togglePauseAmm():function
    • togglePauseAmm()(overrides?: Overrides & { from?: string | Promise<string> }): Promise<BigNumber>
    • Parameters

      • Optional overrides: Overrides & { from?: string | Promise<string> }

      Returns Promise<BigNumber>

  • withdrawExpiredToken:function
    • withdrawExpiredToken(_user: string, _lpTokenId: BigNumberish, overrides?: Overrides & { from?: string | Promise<string> }): Promise<BigNumber>
    • Parameters

      • _user: string
      • _lpTokenId: BigNumberish
      • Optional overrides: Overrides & { from?: string | Promise<string> }

      Returns Promise<BigNumber>

  • withdrawExpiredToken(address,uint256):function
    • withdrawExpiredToken(address,uint256)(_user: string, _lpTokenId: BigNumberish, overrides?: Overrides & { from?: string | Promise<string> }): Promise<BigNumber>
    • Parameters

      • _user: string
      • _lpTokenId: BigNumberish
      • Optional overrides: Overrides & { from?: string | Promise<string> }

      Returns Promise<BigNumber>

filters: {}

Type declaration

    functions: { addLiquidity: any; addLiquidity(uint256,uint256,uint256[2]): any; ammId: any; ammId(): any; calcInAndSpotGivenOut: any; calcInAndSpotGivenOut(uint256,uint256,uint256,uint256,uint256): any; calcOutAndSpotGivenIn: any; calcOutAndSpotGivenIn(uint256,uint256,uint256,uint256,uint256): any; createLiquidity: any; createLiquidity(uint256,uint256[2]): any; exitSwapExternAmountOut: any; exitSwapExternAmountOut(uint256,uint256,uint256,uint256): any; exitSwapPoolAmountIn: any; exitSwapPoolAmountIn(uint256,uint256,uint256,uint256): any; finalize: any; finalize(): any; getExpiredTokensInfo: any; getExpiredTokensInfo(address,uint256): any; getFYTAddress: any; getFYTAddress(): any; getFutureAddress: any; getFutureAddress(): any; getLPTokenId: any; getLPTokenId(uint256,uint256,uint256): any; getPTAddress: any; getPTAddress(): any; getPTWeightInPair: any; getPTWeightInPair(): any; getPairWithID: any; getPairWithID(uint256): any; getSpotPrice: any; getSpotPrice(uint256,uint256,uint256): any; getUnderlyingOfIBTAddress: any; getUnderlyingOfIBTAddress(): any; joinSwapExternAmountIn: any; joinSwapExternAmountIn(uint256,uint256,uint256,uint256): any; joinSwapPoolAmountOut: any; joinSwapPoolAmountOut(uint256,uint256,uint256,uint256): any; removeLiquidity: any; removeLiquidity(uint256,uint256,uint256[2]): any; setSwappingFees: any; setSwappingFees(uint256): any; swapExactAmountIn: any; swapExactAmountIn(uint256,uint256,uint256,uint256,uint256,address): any; swapExactAmountOut: any; swapExactAmountOut(uint256,uint256,uint256,uint256,uint256,address): any; switchPeriod: any; switchPeriod(): any; togglePauseAmm: any; togglePauseAmm(): any; withdrawExpiredToken: any; withdrawExpiredToken(address,uint256): any }

    Type declaration

    • addLiquidity:function
      • addLiquidity(_pairID: BigNumberish, _poolAmountOut: BigNumberish, _maxAmountsIn: [BigNumberish, BigNumberish], overrides?: Overrides & { from?: string | Promise<string> }): Promise<ContractTransaction>
      • Parameters

        • _pairID: BigNumberish
        • _poolAmountOut: BigNumberish
        • _maxAmountsIn: [BigNumberish, BigNumberish]
        • Optional overrides: Overrides & { from?: string | Promise<string> }

        Returns Promise<ContractTransaction>

    • addLiquidity(uint256,uint256,uint256[2]):function
      • addLiquidity(uint256,uint256,uint256[2])(_pairID: BigNumberish, _poolAmountOut: BigNumberish, _maxAmountsIn: [BigNumberish, BigNumberish], overrides?: Overrides & { from?: string | Promise<string> }): Promise<ContractTransaction>
      • Parameters

        • _pairID: BigNumberish
        • _poolAmountOut: BigNumberish
        • _maxAmountsIn: [BigNumberish, BigNumberish]
        • Optional overrides: Overrides & { from?: string | Promise<string> }

        Returns Promise<ContractTransaction>

    • ammId:function
      • ammId(overrides?: Overrides & { from?: string | Promise<string> }): Promise<ContractTransaction>
      • Parameters

        • Optional overrides: Overrides & { from?: string | Promise<string> }

        Returns Promise<ContractTransaction>

    • ammId():function
      • ammId()(overrides?: Overrides & { from?: string | Promise<string> }): Promise<ContractTransaction>
      • Parameters

        • Optional overrides: Overrides & { from?: string | Promise<string> }

        Returns Promise<ContractTransaction>

    • calcInAndSpotGivenOut:function
      • calcInAndSpotGivenOut(_pairID: BigNumberish, _tokenIn: BigNumberish, _maxAmountIn: BigNumberish, _tokenOut: BigNumberish, _tokenAmountOut: BigNumberish, overrides?: CallOverrides): Promise<[BigNumber, BigNumber] & { spotPriceAfter: BigNumber; tokenAmountIn: BigNumber }>
      • Parameters

        • _pairID: BigNumberish
        • _tokenIn: BigNumberish
        • _maxAmountIn: BigNumberish
        • _tokenOut: BigNumberish
        • _tokenAmountOut: BigNumberish
        • Optional overrides: CallOverrides

        Returns Promise<[BigNumber, BigNumber] & { spotPriceAfter: BigNumber; tokenAmountIn: BigNumber }>

    • calcInAndSpotGivenOut(uint256,uint256,uint256,uint256,uint256):function
      • calcInAndSpotGivenOut(uint256,uint256,uint256,uint256,uint256)(_pairID: BigNumberish, _tokenIn: BigNumberish, _maxAmountIn: BigNumberish, _tokenOut: BigNumberish, _tokenAmountOut: BigNumberish, overrides?: CallOverrides): Promise<[BigNumber, BigNumber] & { spotPriceAfter: BigNumber; tokenAmountIn: BigNumber }>
      • Parameters

        • _pairID: BigNumberish
        • _tokenIn: BigNumberish
        • _maxAmountIn: BigNumberish
        • _tokenOut: BigNumberish
        • _tokenAmountOut: BigNumberish
        • Optional overrides: CallOverrides

        Returns Promise<[BigNumber, BigNumber] & { spotPriceAfter: BigNumber; tokenAmountIn: BigNumber }>

    • calcOutAndSpotGivenIn:function
      • calcOutAndSpotGivenIn(_pairID: BigNumberish, _tokenIn: BigNumberish, _tokenAmountIn: BigNumberish, _tokenOut: BigNumberish, _minAmountOut: BigNumberish, overrides?: CallOverrides): Promise<[BigNumber, BigNumber] & { spotPriceAfter: BigNumber; tokenAmountOut: BigNumber }>
      • Parameters

        • _pairID: BigNumberish
        • _tokenIn: BigNumberish
        • _tokenAmountIn: BigNumberish
        • _tokenOut: BigNumberish
        • _minAmountOut: BigNumberish
        • Optional overrides: CallOverrides

        Returns Promise<[BigNumber, BigNumber] & { spotPriceAfter: BigNumber; tokenAmountOut: BigNumber }>

    • calcOutAndSpotGivenIn(uint256,uint256,uint256,uint256,uint256):function
      • calcOutAndSpotGivenIn(uint256,uint256,uint256,uint256,uint256)(_pairID: BigNumberish, _tokenIn: BigNumberish, _tokenAmountIn: BigNumberish, _tokenOut: BigNumberish, _minAmountOut: BigNumberish, overrides?: CallOverrides): Promise<[BigNumber, BigNumber] & { spotPriceAfter: BigNumber; tokenAmountOut: BigNumber }>
      • Parameters

        • _pairID: BigNumberish
        • _tokenIn: BigNumberish
        • _tokenAmountIn: BigNumberish
        • _tokenOut: BigNumberish
        • _minAmountOut: BigNumberish
        • Optional overrides: CallOverrides

        Returns Promise<[BigNumber, BigNumber] & { spotPriceAfter: BigNumber; tokenAmountOut: BigNumber }>

    • createLiquidity:function
      • createLiquidity(_pairID: BigNumberish, _tokenAmounts: [BigNumberish, BigNumberish], overrides?: Overrides & { from?: string | Promise<string> }): Promise<ContractTransaction>
      • Parameters

        • _pairID: BigNumberish
        • _tokenAmounts: [BigNumberish, BigNumberish]
        • Optional overrides: Overrides & { from?: string | Promise<string> }

        Returns Promise<ContractTransaction>

    • createLiquidity(uint256,uint256[2]):function
      • createLiquidity(uint256,uint256[2])(_pairID: BigNumberish, _tokenAmounts: [BigNumberish, BigNumberish], overrides?: Overrides & { from?: string | Promise<string> }): Promise<ContractTransaction>
      • Parameters

        • _pairID: BigNumberish
        • _tokenAmounts: [BigNumberish, BigNumberish]
        • Optional overrides: Overrides & { from?: string | Promise<string> }

        Returns Promise<ContractTransaction>

    • exitSwapExternAmountOut:function
      • exitSwapExternAmountOut(_pairID: BigNumberish, _tokenOut: BigNumberish, _tokenAmountOut: BigNumberish, _maxPoolAmountIn: BigNumberish, overrides?: Overrides & { from?: string | Promise<string> }): Promise<ContractTransaction>
      • Parameters

        • _pairID: BigNumberish
        • _tokenOut: BigNumberish
        • _tokenAmountOut: BigNumberish
        • _maxPoolAmountIn: BigNumberish
        • Optional overrides: Overrides & { from?: string | Promise<string> }

        Returns Promise<ContractTransaction>

    • exitSwapExternAmountOut(uint256,uint256,uint256,uint256):function
      • exitSwapExternAmountOut(uint256,uint256,uint256,uint256)(_pairID: BigNumberish, _tokenOut: BigNumberish, _tokenAmountOut: BigNumberish, _maxPoolAmountIn: BigNumberish, overrides?: Overrides & { from?: string | Promise<string> }): Promise<ContractTransaction>
      • Parameters

        • _pairID: BigNumberish
        • _tokenOut: BigNumberish
        • _tokenAmountOut: BigNumberish
        • _maxPoolAmountIn: BigNumberish
        • Optional overrides: Overrides & { from?: string | Promise<string> }

        Returns Promise<ContractTransaction>

    • exitSwapPoolAmountIn:function
      • exitSwapPoolAmountIn(_pairID: BigNumberish, _tokenOut: BigNumberish, _poolAmountIn: BigNumberish, _minAmountOut: BigNumberish, overrides?: Overrides & { from?: string | Promise<string> }): Promise<ContractTransaction>
      • Parameters

        • _pairID: BigNumberish
        • _tokenOut: BigNumberish
        • _poolAmountIn: BigNumberish
        • _minAmountOut: BigNumberish
        • Optional overrides: Overrides & { from?: string | Promise<string> }

        Returns Promise<ContractTransaction>

    • exitSwapPoolAmountIn(uint256,uint256,uint256,uint256):function
      • exitSwapPoolAmountIn(uint256,uint256,uint256,uint256)(_pairID: BigNumberish, _tokenOut: BigNumberish, _poolAmountIn: BigNumberish, _minAmountOut: BigNumberish, overrides?: Overrides & { from?: string | Promise<string> }): Promise<ContractTransaction>
      • Parameters

        • _pairID: BigNumberish
        • _tokenOut: BigNumberish
        • _poolAmountIn: BigNumberish
        • _minAmountOut: BigNumberish
        • Optional overrides: Overrides & { from?: string | Promise<string> }

        Returns Promise<ContractTransaction>

    • finalize:function
      • finalize(overrides?: Overrides & { from?: string | Promise<string> }): Promise<ContractTransaction>
      • Parameters

        • Optional overrides: Overrides & { from?: string | Promise<string> }

        Returns Promise<ContractTransaction>

    • finalize():function
      • finalize()(overrides?: Overrides & { from?: string | Promise<string> }): Promise<ContractTransaction>
      • Parameters

        • Optional overrides: Overrides & { from?: string | Promise<string> }

        Returns Promise<ContractTransaction>

    • getExpiredTokensInfo:function
      • getExpiredTokensInfo(_user: string, _lpTokenId: BigNumberish, overrides?: CallOverrides): Promise<[BigNumber, BigNumber, BigNumber]>
      • Parameters

        • _user: string
        • _lpTokenId: BigNumberish
        • Optional overrides: CallOverrides

        Returns Promise<[BigNumber, BigNumber, BigNumber]>

    • getExpiredTokensInfo(address,uint256):function
      • getExpiredTokensInfo(address,uint256)(_user: string, _lpTokenId: BigNumberish, overrides?: CallOverrides): Promise<[BigNumber, BigNumber, BigNumber]>
      • Parameters

        • _user: string
        • _lpTokenId: BigNumberish
        • Optional overrides: CallOverrides

        Returns Promise<[BigNumber, BigNumber, BigNumber]>

    • getFYTAddress:function
      • getFYTAddress(overrides?: CallOverrides): Promise<[string]>
      • Parameters

        • Optional overrides: CallOverrides

        Returns Promise<[string]>

    • getFYTAddress():function
      • getFYTAddress()(overrides?: CallOverrides): Promise<[string]>
      • Parameters

        • Optional overrides: CallOverrides

        Returns Promise<[string]>

    • getFutureAddress:function
      • getFutureAddress(overrides?: CallOverrides): Promise<[string]>
      • Parameters

        • Optional overrides: CallOverrides

        Returns Promise<[string]>

    • getFutureAddress():function
      • getFutureAddress()(overrides?: CallOverrides): Promise<[string]>
      • Parameters

        • Optional overrides: CallOverrides

        Returns Promise<[string]>

    • getLPTokenId:function
      • getLPTokenId(_ammId: BigNumberish, _periodIndex: BigNumberish, _pairID: BigNumberish, overrides?: CallOverrides): Promise<[BigNumber]>
      • Parameters

        • _ammId: BigNumberish
        • _periodIndex: BigNumberish
        • _pairID: BigNumberish
        • Optional overrides: CallOverrides

        Returns Promise<[BigNumber]>

    • getLPTokenId(uint256,uint256,uint256):function
      • getLPTokenId(uint256,uint256,uint256)(_ammId: BigNumberish, _periodIndex: BigNumberish, _pairID: BigNumberish, overrides?: CallOverrides): Promise<[BigNumber]>
      • Parameters

        • _ammId: BigNumberish
        • _periodIndex: BigNumberish
        • _pairID: BigNumberish
        • Optional overrides: CallOverrides

        Returns Promise<[BigNumber]>

    • getPTAddress:function
      • getPTAddress(overrides?: CallOverrides): Promise<[string]>
      • Parameters

        • Optional overrides: CallOverrides

        Returns Promise<[string]>

    • getPTAddress():function
      • getPTAddress()(overrides?: CallOverrides): Promise<[string]>
      • Parameters

        • Optional overrides: CallOverrides

        Returns Promise<[string]>

    • getPTWeightInPair:function
      • getPTWeightInPair(overrides?: CallOverrides): Promise<[BigNumber]>
      • Parameters

        • Optional overrides: CallOverrides

        Returns Promise<[BigNumber]>

    • getPTWeightInPair():function
      • getPTWeightInPair()(overrides?: CallOverrides): Promise<[BigNumber]>
      • Parameters

        • Optional overrides: CallOverrides

        Returns Promise<[BigNumber]>

    • getPairWithID:function
      • getPairWithID(_pairID: BigNumberish, overrides?: CallOverrides): Promise<[[string, [BigNumber, BigNumber], [BigNumber, BigNumber], boolean] & { balances: [BigNumber, BigNumber]; liquidityIsInitialized: boolean; tokenAddress: string; weights: [BigNumber, BigNumber] }]>
      • Parameters

        • _pairID: BigNumberish
        • Optional overrides: CallOverrides

        Returns Promise<[[string, [BigNumber, BigNumber], [BigNumber, BigNumber], boolean] & { balances: [BigNumber, BigNumber]; liquidityIsInitialized: boolean; tokenAddress: string; weights: [BigNumber, BigNumber] }]>

    • getPairWithID(uint256):function
      • getPairWithID(uint256)(_pairID: BigNumberish, overrides?: CallOverrides): Promise<[[string, [BigNumber, BigNumber], [BigNumber, BigNumber], boolean] & { balances: [BigNumber, BigNumber]; liquidityIsInitialized: boolean; tokenAddress: string; weights: [BigNumber, BigNumber] }]>
      • Parameters

        • _pairID: BigNumberish
        • Optional overrides: CallOverrides

        Returns Promise<[[string, [BigNumber, BigNumber], [BigNumber, BigNumber], boolean] & { balances: [BigNumber, BigNumber]; liquidityIsInitialized: boolean; tokenAddress: string; weights: [BigNumber, BigNumber] }]>

    • getSpotPrice:function
      • getSpotPrice(_pairID: BigNumberish, _tokenIn: BigNumberish, _tokenOut: BigNumberish, overrides?: CallOverrides): Promise<[BigNumber]>
      • Parameters

        • _pairID: BigNumberish
        • _tokenIn: BigNumberish
        • _tokenOut: BigNumberish
        • Optional overrides: CallOverrides

        Returns Promise<[BigNumber]>

    • getSpotPrice(uint256,uint256,uint256):function
      • getSpotPrice(uint256,uint256,uint256)(_pairID: BigNumberish, _tokenIn: BigNumberish, _tokenOut: BigNumberish, overrides?: CallOverrides): Promise<[BigNumber]>
      • Parameters

        • _pairID: BigNumberish
        • _tokenIn: BigNumberish
        • _tokenOut: BigNumberish
        • Optional overrides: CallOverrides

        Returns Promise<[BigNumber]>

    • getUnderlyingOfIBTAddress:function
      • getUnderlyingOfIBTAddress(overrides?: CallOverrides): Promise<[string]>
      • Parameters

        • Optional overrides: CallOverrides

        Returns Promise<[string]>

    • getUnderlyingOfIBTAddress():function
      • getUnderlyingOfIBTAddress()(overrides?: CallOverrides): Promise<[string]>
      • Parameters

        • Optional overrides: CallOverrides

        Returns Promise<[string]>

    • joinSwapExternAmountIn:function
      • joinSwapExternAmountIn(_pairID: BigNumberish, _tokenIn: BigNumberish, _tokenAmountIn: BigNumberish, _minPoolAmountOut: BigNumberish, overrides?: Overrides & { from?: string | Promise<string> }): Promise<ContractTransaction>
      • Parameters

        • _pairID: BigNumberish
        • _tokenIn: BigNumberish
        • _tokenAmountIn: BigNumberish
        • _minPoolAmountOut: BigNumberish
        • Optional overrides: Overrides & { from?: string | Promise<string> }

        Returns Promise<ContractTransaction>

    • joinSwapExternAmountIn(uint256,uint256,uint256,uint256):function
      • joinSwapExternAmountIn(uint256,uint256,uint256,uint256)(_pairID: BigNumberish, _tokenIn: BigNumberish, _tokenAmountIn: BigNumberish, _minPoolAmountOut: BigNumberish, overrides?: Overrides & { from?: string | Promise<string> }): Promise<ContractTransaction>
      • Parameters

        • _pairID: BigNumberish
        • _tokenIn: BigNumberish
        • _tokenAmountIn: BigNumberish
        • _minPoolAmountOut: BigNumberish
        • Optional overrides: Overrides & { from?: string | Promise<string> }

        Returns Promise<ContractTransaction>

    • joinSwapPoolAmountOut:function
      • joinSwapPoolAmountOut(_pairID: BigNumberish, _tokenIn: BigNumberish, _poolAmountOut: BigNumberish, _maxAmountIn: BigNumberish, overrides?: Overrides & { from?: string | Promise<string> }): Promise<ContractTransaction>
      • Parameters

        • _pairID: BigNumberish
        • _tokenIn: BigNumberish
        • _poolAmountOut: BigNumberish
        • _maxAmountIn: BigNumberish
        • Optional overrides: Overrides & { from?: string | Promise<string> }

        Returns Promise<ContractTransaction>

    • joinSwapPoolAmountOut(uint256,uint256,uint256,uint256):function
      • joinSwapPoolAmountOut(uint256,uint256,uint256,uint256)(_pairID: BigNumberish, _tokenIn: BigNumberish, _poolAmountOut: BigNumberish, _maxAmountIn: BigNumberish, overrides?: Overrides & { from?: string | Promise<string> }): Promise<ContractTransaction>
      • Parameters

        • _pairID: BigNumberish
        • _tokenIn: BigNumberish
        • _poolAmountOut: BigNumberish
        • _maxAmountIn: BigNumberish
        • Optional overrides: Overrides & { from?: string | Promise<string> }

        Returns Promise<ContractTransaction>

    • removeLiquidity:function
      • removeLiquidity(_pairID: BigNumberish, _poolAmountIn: BigNumberish, _minAmountsOut: [BigNumberish, BigNumberish], overrides?: Overrides & { from?: string | Promise<string> }): Promise<ContractTransaction>
      • Parameters

        • _pairID: BigNumberish
        • _poolAmountIn: BigNumberish
        • _minAmountsOut: [BigNumberish, BigNumberish]
        • Optional overrides: Overrides & { from?: string | Promise<string> }

        Returns Promise<ContractTransaction>

    • removeLiquidity(uint256,uint256,uint256[2]):function
      • removeLiquidity(uint256,uint256,uint256[2])(_pairID: BigNumberish, _poolAmountIn: BigNumberish, _minAmountsOut: [BigNumberish, BigNumberish], overrides?: Overrides & { from?: string | Promise<string> }): Promise<ContractTransaction>
      • Parameters

        • _pairID: BigNumberish
        • _poolAmountIn: BigNumberish
        • _minAmountsOut: [BigNumberish, BigNumberish]
        • Optional overrides: Overrides & { from?: string | Promise<string> }

        Returns Promise<ContractTransaction>

    • setSwappingFees:function
      • setSwappingFees(_swapFee: BigNumberish, overrides?: Overrides & { from?: string | Promise<string> }): Promise<ContractTransaction>
      • Parameters

        • _swapFee: BigNumberish
        • Optional overrides: Overrides & { from?: string | Promise<string> }

        Returns Promise<ContractTransaction>

    • setSwappingFees(uint256):function
      • setSwappingFees(uint256)(_swapFee: BigNumberish, overrides?: Overrides & { from?: string | Promise<string> }): Promise<ContractTransaction>
      • Parameters

        • _swapFee: BigNumberish
        • Optional overrides: Overrides & { from?: string | Promise<string> }

        Returns Promise<ContractTransaction>

    • swapExactAmountIn:function
      • swapExactAmountIn(_pairID: BigNumberish, _tokenIn: BigNumberish, _tokenAmountIn: BigNumberish, _tokenOut: BigNumberish, _minAmountOut: BigNumberish, _to: string, overrides?: Overrides & { from?: string | Promise<string> }): Promise<ContractTransaction>
      • Parameters

        • _pairID: BigNumberish
        • _tokenIn: BigNumberish
        • _tokenAmountIn: BigNumberish
        • _tokenOut: BigNumberish
        • _minAmountOut: BigNumberish
        • _to: string
        • Optional overrides: Overrides & { from?: string | Promise<string> }

        Returns Promise<ContractTransaction>

    • swapExactAmountIn(uint256,uint256,uint256,uint256,uint256,address):function
      • swapExactAmountIn(uint256,uint256,uint256,uint256,uint256,address)(_pairID: BigNumberish, _tokenIn: BigNumberish, _tokenAmountIn: BigNumberish, _tokenOut: BigNumberish, _minAmountOut: BigNumberish, _to: string, overrides?: Overrides & { from?: string | Promise<string> }): Promise<ContractTransaction>
      • Parameters

        • _pairID: BigNumberish
        • _tokenIn: BigNumberish
        • _tokenAmountIn: BigNumberish
        • _tokenOut: BigNumberish
        • _minAmountOut: BigNumberish
        • _to: string
        • Optional overrides: Overrides & { from?: string | Promise<string> }

        Returns Promise<ContractTransaction>

    • swapExactAmountOut:function
      • swapExactAmountOut(_pairID: BigNumberish, _tokenIn: BigNumberish, _maxAmountIn: BigNumberish, _tokenOut: BigNumberish, _tokenAmountOut: BigNumberish, _to: string, overrides?: Overrides & { from?: string | Promise<string> }): Promise<ContractTransaction>
      • Parameters

        • _pairID: BigNumberish
        • _tokenIn: BigNumberish
        • _maxAmountIn: BigNumberish
        • _tokenOut: BigNumberish
        • _tokenAmountOut: BigNumberish
        • _to: string
        • Optional overrides: Overrides & { from?: string | Promise<string> }

        Returns Promise<ContractTransaction>

    • swapExactAmountOut(uint256,uint256,uint256,uint256,uint256,address):function
      • swapExactAmountOut(uint256,uint256,uint256,uint256,uint256,address)(_pairID: BigNumberish, _tokenIn: BigNumberish, _maxAmountIn: BigNumberish, _tokenOut: BigNumberish, _tokenAmountOut: BigNumberish, _to: string, overrides?: Overrides & { from?: string | Promise<string> }): Promise<ContractTransaction>
      • Parameters

        • _pairID: BigNumberish
        • _tokenIn: BigNumberish
        • _maxAmountIn: BigNumberish
        • _tokenOut: BigNumberish
        • _tokenAmountOut: BigNumberish
        • _to: string
        • Optional overrides: Overrides & { from?: string | Promise<string> }

        Returns Promise<ContractTransaction>

    • switchPeriod:function
      • switchPeriod(overrides?: Overrides & { from?: string | Promise<string> }): Promise<ContractTransaction>
      • Parameters

        • Optional overrides: Overrides & { from?: string | Promise<string> }

        Returns Promise<ContractTransaction>

    • switchPeriod():function
      • switchPeriod()(overrides?: Overrides & { from?: string | Promise<string> }): Promise<ContractTransaction>
      • Parameters

        • Optional overrides: Overrides & { from?: string | Promise<string> }

        Returns Promise<ContractTransaction>

    • togglePauseAmm:function
      • togglePauseAmm(overrides?: Overrides & { from?: string | Promise<string> }): Promise<ContractTransaction>
      • Parameters

        • Optional overrides: Overrides & { from?: string | Promise<string> }

        Returns Promise<ContractTransaction>

    • togglePauseAmm():function
      • togglePauseAmm()(overrides?: Overrides & { from?: string | Promise<string> }): Promise<ContractTransaction>
      • Parameters

        • Optional overrides: Overrides & { from?: string | Promise<string> }

        Returns Promise<ContractTransaction>

    • withdrawExpiredToken:function
      • withdrawExpiredToken(_user: string, _lpTokenId: BigNumberish, overrides?: Overrides & { from?: string | Promise<string> }): Promise<ContractTransaction>
      • Parameters

        • _user: string
        • _lpTokenId: BigNumberish
        • Optional overrides: Overrides & { from?: string | Promise<string> }

        Returns Promise<ContractTransaction>

    • withdrawExpiredToken(address,uint256):function
      • withdrawExpiredToken(address,uint256)(_user: string, _lpTokenId: BigNumberish, overrides?: Overrides & { from?: string | Promise<string> }): Promise<ContractTransaction>
      • Parameters

        • _user: string
        • _lpTokenId: BigNumberish
        • Optional overrides: Overrides & { from?: string | Promise<string> }

        Returns Promise<ContractTransaction>

    interface: IAMMInterface
    populateTransaction: { addLiquidity: any; addLiquidity(uint256,uint256,uint256[2]): any; ammId: any; ammId(): any; calcInAndSpotGivenOut: any; calcInAndSpotGivenOut(uint256,uint256,uint256,uint256,uint256): any; calcOutAndSpotGivenIn: any; calcOutAndSpotGivenIn(uint256,uint256,uint256,uint256,uint256): any; createLiquidity: any; createLiquidity(uint256,uint256[2]): any; exitSwapExternAmountOut: any; exitSwapExternAmountOut(uint256,uint256,uint256,uint256): any; exitSwapPoolAmountIn: any; exitSwapPoolAmountIn(uint256,uint256,uint256,uint256): any; finalize: any; finalize(): any; getExpiredTokensInfo: any; getExpiredTokensInfo(address,uint256): any; getFYTAddress: any; getFYTAddress(): any; getFutureAddress: any; getFutureAddress(): any; getLPTokenId: any; getLPTokenId(uint256,uint256,uint256): any; getPTAddress: any; getPTAddress(): any; getPTWeightInPair: any; getPTWeightInPair(): any; getPairWithID: any; getPairWithID(uint256): any; getSpotPrice: any; getSpotPrice(uint256,uint256,uint256): any; getUnderlyingOfIBTAddress: any; getUnderlyingOfIBTAddress(): any; joinSwapExternAmountIn: any; joinSwapExternAmountIn(uint256,uint256,uint256,uint256): any; joinSwapPoolAmountOut: any; joinSwapPoolAmountOut(uint256,uint256,uint256,uint256): any; removeLiquidity: any; removeLiquidity(uint256,uint256,uint256[2]): any; setSwappingFees: any; setSwappingFees(uint256): any; swapExactAmountIn: any; swapExactAmountIn(uint256,uint256,uint256,uint256,uint256,address): any; swapExactAmountOut: any; swapExactAmountOut(uint256,uint256,uint256,uint256,uint256,address): any; switchPeriod: any; switchPeriod(): any; togglePauseAmm: any; togglePauseAmm(): any; withdrawExpiredToken: any; withdrawExpiredToken(address,uint256): any }

    Type declaration

    • addLiquidity:function
      • addLiquidity(_pairID: BigNumberish, _poolAmountOut: BigNumberish, _maxAmountsIn: [BigNumberish, BigNumberish], overrides?: Overrides & { from?: string | Promise<string> }): Promise<PopulatedTransaction>
      • Parameters

        • _pairID: BigNumberish
        • _poolAmountOut: BigNumberish
        • _maxAmountsIn: [BigNumberish, BigNumberish]
        • Optional overrides: Overrides & { from?: string | Promise<string> }

        Returns Promise<PopulatedTransaction>

    • addLiquidity(uint256,uint256,uint256[2]):function
      • addLiquidity(uint256,uint256,uint256[2])(_pairID: BigNumberish, _poolAmountOut: BigNumberish, _maxAmountsIn: [BigNumberish, BigNumberish], overrides?: Overrides & { from?: string | Promise<string> }): Promise<PopulatedTransaction>
      • Parameters

        • _pairID: BigNumberish
        • _poolAmountOut: BigNumberish
        • _maxAmountsIn: [BigNumberish, BigNumberish]
        • Optional overrides: Overrides & { from?: string | Promise<string> }

        Returns Promise<PopulatedTransaction>

    • ammId:function
      • ammId(overrides?: Overrides & { from?: string | Promise<string> }): Promise<PopulatedTransaction>
      • Parameters

        • Optional overrides: Overrides & { from?: string | Promise<string> }

        Returns Promise<PopulatedTransaction>

    • ammId():function
      • ammId()(overrides?: Overrides & { from?: string | Promise<string> }): Promise<PopulatedTransaction>
      • Parameters

        • Optional overrides: Overrides & { from?: string | Promise<string> }

        Returns Promise<PopulatedTransaction>

    • calcInAndSpotGivenOut:function
      • calcInAndSpotGivenOut(_pairID: BigNumberish, _tokenIn: BigNumberish, _maxAmountIn: BigNumberish, _tokenOut: BigNumberish, _tokenAmountOut: BigNumberish, overrides?: CallOverrides): Promise<PopulatedTransaction>
      • Parameters

        • _pairID: BigNumberish
        • _tokenIn: BigNumberish
        • _maxAmountIn: BigNumberish
        • _tokenOut: BigNumberish
        • _tokenAmountOut: BigNumberish
        • Optional overrides: CallOverrides

        Returns Promise<PopulatedTransaction>

    • calcInAndSpotGivenOut(uint256,uint256,uint256,uint256,uint256):function
      • calcInAndSpotGivenOut(uint256,uint256,uint256,uint256,uint256)(_pairID: BigNumberish, _tokenIn: BigNumberish, _maxAmountIn: BigNumberish, _tokenOut: BigNumberish, _tokenAmountOut: BigNumberish, overrides?: CallOverrides): Promise<PopulatedTransaction>
      • Parameters

        • _pairID: BigNumberish
        • _tokenIn: BigNumberish
        • _maxAmountIn: BigNumberish
        • _tokenOut: BigNumberish
        • _tokenAmountOut: BigNumberish
        • Optional overrides: CallOverrides

        Returns Promise<PopulatedTransaction>

    • calcOutAndSpotGivenIn:function
      • calcOutAndSpotGivenIn(_pairID: BigNumberish, _tokenIn: BigNumberish, _tokenAmountIn: BigNumberish, _tokenOut: BigNumberish, _minAmountOut: BigNumberish, overrides?: CallOverrides): Promise<PopulatedTransaction>
      • Parameters

        • _pairID: BigNumberish
        • _tokenIn: BigNumberish
        • _tokenAmountIn: BigNumberish
        • _tokenOut: BigNumberish
        • _minAmountOut: BigNumberish
        • Optional overrides: CallOverrides

        Returns Promise<PopulatedTransaction>

    • calcOutAndSpotGivenIn(uint256,uint256,uint256,uint256,uint256):function
      • calcOutAndSpotGivenIn(uint256,uint256,uint256,uint256,uint256)(_pairID: BigNumberish, _tokenIn: BigNumberish, _tokenAmountIn: BigNumberish, _tokenOut: BigNumberish, _minAmountOut: BigNumberish, overrides?: CallOverrides): Promise<PopulatedTransaction>
      • Parameters

        • _pairID: BigNumberish
        • _tokenIn: BigNumberish
        • _tokenAmountIn: BigNumberish
        • _tokenOut: BigNumberish
        • _minAmountOut: BigNumberish
        • Optional overrides: CallOverrides

        Returns Promise<PopulatedTransaction>

    • createLiquidity:function
      • createLiquidity(_pairID: BigNumberish, _tokenAmounts: [BigNumberish, BigNumberish], overrides?: Overrides & { from?: string | Promise<string> }): Promise<PopulatedTransaction>
      • Parameters

        • _pairID: BigNumberish
        • _tokenAmounts: [BigNumberish, BigNumberish]
        • Optional overrides: Overrides & { from?: string | Promise<string> }

        Returns Promise<PopulatedTransaction>

    • createLiquidity(uint256,uint256[2]):function
      • createLiquidity(uint256,uint256[2])(_pairID: BigNumberish, _tokenAmounts: [BigNumberish, BigNumberish], overrides?: Overrides & { from?: string | Promise<string> }): Promise<PopulatedTransaction>
      • Parameters

        • _pairID: BigNumberish
        • _tokenAmounts: [BigNumberish, BigNumberish]
        • Optional overrides: Overrides & { from?: string | Promise<string> }

        Returns Promise<PopulatedTransaction>

    • exitSwapExternAmountOut:function
      • exitSwapExternAmountOut(_pairID: BigNumberish, _tokenOut: BigNumberish, _tokenAmountOut: BigNumberish, _maxPoolAmountIn: BigNumberish, overrides?: Overrides & { from?: string | Promise<string> }): Promise<PopulatedTransaction>
      • Parameters

        • _pairID: BigNumberish
        • _tokenOut: BigNumberish
        • _tokenAmountOut: BigNumberish
        • _maxPoolAmountIn: BigNumberish
        • Optional overrides: Overrides & { from?: string | Promise<string> }

        Returns Promise<PopulatedTransaction>

    • exitSwapExternAmountOut(uint256,uint256,uint256,uint256):function
      • exitSwapExternAmountOut(uint256,uint256,uint256,uint256)(_pairID: BigNumberish, _tokenOut: BigNumberish, _tokenAmountOut: BigNumberish, _maxPoolAmountIn: BigNumberish, overrides?: Overrides & { from?: string | Promise<string> }): Promise<PopulatedTransaction>
      • Parameters

        • _pairID: BigNumberish
        • _tokenOut: BigNumberish
        • _tokenAmountOut: BigNumberish
        • _maxPoolAmountIn: BigNumberish
        • Optional overrides: Overrides & { from?: string | Promise<string> }

        Returns Promise<PopulatedTransaction>

    • exitSwapPoolAmountIn:function
      • exitSwapPoolAmountIn(_pairID: BigNumberish, _tokenOut: BigNumberish, _poolAmountIn: BigNumberish, _minAmountOut: BigNumberish, overrides?: Overrides & { from?: string | Promise<string> }): Promise<PopulatedTransaction>
      • Parameters

        • _pairID: BigNumberish
        • _tokenOut: BigNumberish
        • _poolAmountIn: BigNumberish
        • _minAmountOut: BigNumberish
        • Optional overrides: Overrides & { from?: string | Promise<string> }

        Returns Promise<PopulatedTransaction>

    • exitSwapPoolAmountIn(uint256,uint256,uint256,uint256):function
      • exitSwapPoolAmountIn(uint256,uint256,uint256,uint256)(_pairID: BigNumberish, _tokenOut: BigNumberish, _poolAmountIn: BigNumberish, _minAmountOut: BigNumberish, overrides?: Overrides & { from?: string | Promise<string> }): Promise<PopulatedTransaction>
      • Parameters

        • _pairID: BigNumberish
        • _tokenOut: BigNumberish
        • _poolAmountIn: BigNumberish
        • _minAmountOut: BigNumberish
        • Optional overrides: Overrides & { from?: string | Promise<string> }

        Returns Promise<PopulatedTransaction>

    • finalize:function
      • finalize(overrides?: Overrides & { from?: string | Promise<string> }): Promise<PopulatedTransaction>
      • Parameters

        • Optional overrides: Overrides & { from?: string | Promise<string> }

        Returns Promise<PopulatedTransaction>

    • finalize():function
      • finalize()(overrides?: Overrides & { from?: string | Promise<string> }): Promise<PopulatedTransaction>
      • Parameters

        • Optional overrides: Overrides & { from?: string | Promise<string> }

        Returns Promise<PopulatedTransaction>

    • getExpiredTokensInfo:function
      • getExpiredTokensInfo(_user: string, _lpTokenId: BigNumberish, overrides?: CallOverrides): Promise<PopulatedTransaction>
      • Parameters

        • _user: string
        • _lpTokenId: BigNumberish
        • Optional overrides: CallOverrides

        Returns Promise<PopulatedTransaction>

    • getExpiredTokensInfo(address,uint256):function
      • getExpiredTokensInfo(address,uint256)(_user: string, _lpTokenId: BigNumberish, overrides?: CallOverrides): Promise<PopulatedTransaction>
      • Parameters

        • _user: string
        • _lpTokenId: BigNumberish
        • Optional overrides: CallOverrides

        Returns Promise<PopulatedTransaction>

    • getFYTAddress:function
      • getFYTAddress(overrides?: CallOverrides): Promise<PopulatedTransaction>
      • Parameters

        • Optional overrides: CallOverrides

        Returns Promise<PopulatedTransaction>

    • getFYTAddress():function
      • getFYTAddress()(overrides?: CallOverrides): Promise<PopulatedTransaction>
      • Parameters

        • Optional overrides: CallOverrides

        Returns Promise<PopulatedTransaction>

    • getFutureAddress:function
      • getFutureAddress(overrides?: CallOverrides): Promise<PopulatedTransaction>
      • Parameters

        • Optional overrides: CallOverrides

        Returns Promise<PopulatedTransaction>

    • getFutureAddress():function
      • getFutureAddress()(overrides?: CallOverrides): Promise<PopulatedTransaction>
      • Parameters

        • Optional overrides: CallOverrides

        Returns Promise<PopulatedTransaction>

    • getLPTokenId:function
      • getLPTokenId(_ammId: BigNumberish, _periodIndex: BigNumberish, _pairID: BigNumberish, overrides?: CallOverrides): Promise<PopulatedTransaction>
      • Parameters

        • _ammId: BigNumberish
        • _periodIndex: BigNumberish
        • _pairID: BigNumberish
        • Optional overrides: CallOverrides

        Returns Promise<PopulatedTransaction>

    • getLPTokenId(uint256,uint256,uint256):function
      • getLPTokenId(uint256,uint256,uint256)(_ammId: BigNumberish, _periodIndex: BigNumberish, _pairID: BigNumberish, overrides?: CallOverrides): Promise<PopulatedTransaction>
      • Parameters

        • _ammId: BigNumberish
        • _periodIndex: BigNumberish
        • _pairID: BigNumberish
        • Optional overrides: CallOverrides

        Returns Promise<PopulatedTransaction>

    • getPTAddress:function
      • getPTAddress(overrides?: CallOverrides): Promise<PopulatedTransaction>
      • Parameters

        • Optional overrides: CallOverrides

        Returns Promise<PopulatedTransaction>

    • getPTAddress():function
      • getPTAddress()(overrides?: CallOverrides): Promise<PopulatedTransaction>
      • Parameters

        • Optional overrides: CallOverrides

        Returns Promise<PopulatedTransaction>

    • getPTWeightInPair:function
      • getPTWeightInPair(overrides?: CallOverrides): Promise<PopulatedTransaction>
      • Parameters

        • Optional overrides: CallOverrides

        Returns Promise<PopulatedTransaction>

    • getPTWeightInPair():function
      • getPTWeightInPair()(overrides?: CallOverrides): Promise<PopulatedTransaction>
      • Parameters

        • Optional overrides: CallOverrides

        Returns Promise<PopulatedTransaction>

    • getPairWithID:function
      • getPairWithID(_pairID: BigNumberish, overrides?: CallOverrides): Promise<PopulatedTransaction>
      • Parameters

        • _pairID: BigNumberish
        • Optional overrides: CallOverrides

        Returns Promise<PopulatedTransaction>

    • getPairWithID(uint256):function
      • getPairWithID(uint256)(_pairID: BigNumberish, overrides?: CallOverrides): Promise<PopulatedTransaction>
      • Parameters

        • _pairID: BigNumberish
        • Optional overrides: CallOverrides

        Returns Promise<PopulatedTransaction>

    • getSpotPrice:function
      • getSpotPrice(_pairID: BigNumberish, _tokenIn: BigNumberish, _tokenOut: BigNumberish, overrides?: CallOverrides): Promise<PopulatedTransaction>
      • Parameters

        • _pairID: BigNumberish
        • _tokenIn: BigNumberish
        • _tokenOut: BigNumberish
        • Optional overrides: CallOverrides

        Returns Promise<PopulatedTransaction>

    • getSpotPrice(uint256,uint256,uint256):function
      • getSpotPrice(uint256,uint256,uint256)(_pairID: BigNumberish, _tokenIn: BigNumberish, _tokenOut: BigNumberish, overrides?: CallOverrides): Promise<PopulatedTransaction>
      • Parameters

        • _pairID: BigNumberish
        • _tokenIn: BigNumberish
        • _tokenOut: BigNumberish
        • Optional overrides: CallOverrides

        Returns Promise<PopulatedTransaction>

    • getUnderlyingOfIBTAddress:function
      • getUnderlyingOfIBTAddress(overrides?: CallOverrides): Promise<PopulatedTransaction>
      • Parameters

        • Optional overrides: CallOverrides

        Returns Promise<PopulatedTransaction>

    • getUnderlyingOfIBTAddress():function
      • getUnderlyingOfIBTAddress()(overrides?: CallOverrides): Promise<PopulatedTransaction>
      • Parameters

        • Optional overrides: CallOverrides

        Returns Promise<PopulatedTransaction>

    • joinSwapExternAmountIn:function
      • joinSwapExternAmountIn(_pairID: BigNumberish, _tokenIn: BigNumberish, _tokenAmountIn: BigNumberish, _minPoolAmountOut: BigNumberish, overrides?: Overrides & { from?: string | Promise<string> }): Promise<PopulatedTransaction>
      • Parameters

        • _pairID: BigNumberish
        • _tokenIn: BigNumberish
        • _tokenAmountIn: BigNumberish
        • _minPoolAmountOut: BigNumberish
        • Optional overrides: Overrides & { from?: string | Promise<string> }

        Returns Promise<PopulatedTransaction>

    • joinSwapExternAmountIn(uint256,uint256,uint256,uint256):function
      • joinSwapExternAmountIn(uint256,uint256,uint256,uint256)(_pairID: BigNumberish, _tokenIn: BigNumberish, _tokenAmountIn: BigNumberish, _minPoolAmountOut: BigNumberish, overrides?: Overrides & { from?: string | Promise<string> }): Promise<PopulatedTransaction>
      • Parameters

        • _pairID: BigNumberish
        • _tokenIn: BigNumberish
        • _tokenAmountIn: BigNumberish
        • _minPoolAmountOut: BigNumberish
        • Optional overrides: Overrides & { from?: string | Promise<string> }

        Returns Promise<PopulatedTransaction>

    • joinSwapPoolAmountOut:function
      • joinSwapPoolAmountOut(_pairID: BigNumberish, _tokenIn: BigNumberish, _poolAmountOut: BigNumberish, _maxAmountIn: BigNumberish, overrides?: Overrides & { from?: string | Promise<string> }): Promise<PopulatedTransaction>
      • Parameters

        • _pairID: BigNumberish
        • _tokenIn: BigNumberish
        • _poolAmountOut: BigNumberish
        • _maxAmountIn: BigNumberish
        • Optional overrides: Overrides & { from?: string | Promise<string> }

        Returns Promise<PopulatedTransaction>

    • joinSwapPoolAmountOut(uint256,uint256,uint256,uint256):function
      • joinSwapPoolAmountOut(uint256,uint256,uint256,uint256)(_pairID: BigNumberish, _tokenIn: BigNumberish, _poolAmountOut: BigNumberish, _maxAmountIn: BigNumberish, overrides?: Overrides & { from?: string | Promise<string> }): Promise<PopulatedTransaction>
      • Parameters

        • _pairID: BigNumberish
        • _tokenIn: BigNumberish
        • _poolAmountOut: BigNumberish
        • _maxAmountIn: BigNumberish
        • Optional overrides: Overrides & { from?: string | Promise<string> }

        Returns Promise<PopulatedTransaction>

    • removeLiquidity:function
      • removeLiquidity(_pairID: BigNumberish, _poolAmountIn: BigNumberish, _minAmountsOut: [BigNumberish, BigNumberish], overrides?: Overrides & { from?: string | Promise<string> }): Promise<PopulatedTransaction>
      • Parameters

        • _pairID: BigNumberish
        • _poolAmountIn: BigNumberish
        • _minAmountsOut: [BigNumberish, BigNumberish]
        • Optional overrides: Overrides & { from?: string | Promise<string> }

        Returns Promise<PopulatedTransaction>

    • removeLiquidity(uint256,uint256,uint256[2]):function
      • removeLiquidity(uint256,uint256,uint256[2])(_pairID: BigNumberish, _poolAmountIn: BigNumberish, _minAmountsOut: [BigNumberish, BigNumberish], overrides?: Overrides & { from?: string | Promise<string> }): Promise<PopulatedTransaction>
      • Parameters

        • _pairID: BigNumberish
        • _poolAmountIn: BigNumberish
        • _minAmountsOut: [BigNumberish, BigNumberish]
        • Optional overrides: Overrides & { from?: string | Promise<string> }

        Returns Promise<PopulatedTransaction>

    • setSwappingFees:function
      • setSwappingFees(_swapFee: BigNumberish, overrides?: Overrides & { from?: string | Promise<string> }): Promise<PopulatedTransaction>
      • Parameters

        • _swapFee: BigNumberish
        • Optional overrides: Overrides & { from?: string | Promise<string> }

        Returns Promise<PopulatedTransaction>

    • setSwappingFees(uint256):function
      • setSwappingFees(uint256)(_swapFee: BigNumberish, overrides?: Overrides & { from?: string | Promise<string> }): Promise<PopulatedTransaction>
      • Parameters

        • _swapFee: BigNumberish
        • Optional overrides: Overrides & { from?: string | Promise<string> }

        Returns Promise<PopulatedTransaction>

    • swapExactAmountIn:function
      • swapExactAmountIn(_pairID: BigNumberish, _tokenIn: BigNumberish, _tokenAmountIn: BigNumberish, _tokenOut: BigNumberish, _minAmountOut: BigNumberish, _to: string, overrides?: Overrides & { from?: string | Promise<string> }): Promise<PopulatedTransaction>
      • Parameters

        • _pairID: BigNumberish
        • _tokenIn: BigNumberish
        • _tokenAmountIn: BigNumberish
        • _tokenOut: BigNumberish
        • _minAmountOut: BigNumberish
        • _to: string
        • Optional overrides: Overrides & { from?: string | Promise<string> }

        Returns Promise<PopulatedTransaction>

    • swapExactAmountIn(uint256,uint256,uint256,uint256,uint256,address):function
      • swapExactAmountIn(uint256,uint256,uint256,uint256,uint256,address)(_pairID: BigNumberish, _tokenIn: BigNumberish, _tokenAmountIn: BigNumberish, _tokenOut: BigNumberish, _minAmountOut: BigNumberish, _to: string, overrides?: Overrides & { from?: string | Promise<string> }): Promise<PopulatedTransaction>
      • Parameters

        • _pairID: BigNumberish
        • _tokenIn: BigNumberish
        • _tokenAmountIn: BigNumberish
        • _tokenOut: BigNumberish
        • _minAmountOut: BigNumberish
        • _to: string
        • Optional overrides: Overrides & { from?: string | Promise<string> }

        Returns Promise<PopulatedTransaction>

    • swapExactAmountOut:function
      • swapExactAmountOut(_pairID: BigNumberish, _tokenIn: BigNumberish, _maxAmountIn: BigNumberish, _tokenOut: BigNumberish, _tokenAmountOut: BigNumberish, _to: string, overrides?: Overrides & { from?: string | Promise<string> }): Promise<PopulatedTransaction>
      • Parameters

        • _pairID: BigNumberish
        • _tokenIn: BigNumberish
        • _maxAmountIn: BigNumberish
        • _tokenOut: BigNumberish
        • _tokenAmountOut: BigNumberish
        • _to: string
        • Optional overrides: Overrides & { from?: string | Promise<string> }

        Returns Promise<PopulatedTransaction>

    • swapExactAmountOut(uint256,uint256,uint256,uint256,uint256,address):function
      • swapExactAmountOut(uint256,uint256,uint256,uint256,uint256,address)(_pairID: BigNumberish, _tokenIn: BigNumberish, _maxAmountIn: BigNumberish, _tokenOut: BigNumberish, _tokenAmountOut: BigNumberish, _to: string, overrides?: Overrides & { from?: string | Promise<string> }): Promise<PopulatedTransaction>
      • Parameters

        • _pairID: BigNumberish
        • _tokenIn: BigNumberish
        • _maxAmountIn: BigNumberish
        • _tokenOut: BigNumberish
        • _tokenAmountOut: BigNumberish
        • _to: string
        • Optional overrides: Overrides & { from?: string | Promise<string> }

        Returns Promise<PopulatedTransaction>

    • switchPeriod:function
      • switchPeriod(overrides?: Overrides & { from?: string | Promise<string> }): Promise<PopulatedTransaction>
      • Parameters

        • Optional overrides: Overrides & { from?: string | Promise<string> }

        Returns Promise<PopulatedTransaction>

    • switchPeriod():function
      • switchPeriod()(overrides?: Overrides & { from?: string | Promise<string> }): Promise<PopulatedTransaction>
      • Parameters

        • Optional overrides: Overrides & { from?: string | Promise<string> }

        Returns Promise<PopulatedTransaction>

    • togglePauseAmm:function
      • togglePauseAmm(overrides?: Overrides & { from?: string | Promise<string> }): Promise<PopulatedTransaction>
      • Parameters

        • Optional overrides: Overrides & { from?: string | Promise<string> }

        Returns Promise<PopulatedTransaction>

    • togglePauseAmm():function
      • togglePauseAmm()(overrides?: Overrides & { from?: string | Promise<string> }): Promise<PopulatedTransaction>
      • Parameters

        • Optional overrides: Overrides & { from?: string | Promise<string> }

        Returns Promise<PopulatedTransaction>

    • withdrawExpiredToken:function
      • withdrawExpiredToken(_user: string, _lpTokenId: BigNumberish, overrides?: Overrides & { from?: string | Promise<string> }): Promise<PopulatedTransaction>
      • Parameters

        • _user: string
        • _lpTokenId: BigNumberish
        • Optional overrides: Overrides & { from?: string | Promise<string> }

        Returns Promise<PopulatedTransaction>

    • withdrawExpiredToken(address,uint256):function
      • withdrawExpiredToken(address,uint256)(_user: string, _lpTokenId: BigNumberish, overrides?: Overrides & { from?: string | Promise<string> }): Promise<PopulatedTransaction>
      • Parameters

        • _user: string
        • _lpTokenId: BigNumberish
        • Optional overrides: Overrides & { from?: string | Promise<string> }

        Returns Promise<PopulatedTransaction>

    provider: Provider
    resolvedAddress: Promise<string>
    signer: Signer

    Methods

    • _checkRunningEvents(runningEvent: RunningEvent): void
    • Parameters

      • runningEvent: RunningEvent

      Returns void

    • _deployed(blockTag?: BlockTag): Promise<Contract>
    • Parameters

      • Optional blockTag: BlockTag

      Returns Promise<Contract>

    • _wrapEvent(runningEvent: RunningEvent, log: Log, listener: Listener): Event
    • Parameters

      • runningEvent: RunningEvent
      • log: Log
      • listener: Listener

      Returns Event

    • addLiquidity(_pairID: BigNumberish, _poolAmountOut: BigNumberish, _maxAmountsIn: [BigNumberish, BigNumberish], overrides?: Overrides & { from?: string | Promise<string> }): Promise<ContractTransaction>
    • Parameters

      • _pairID: BigNumberish
      • _poolAmountOut: BigNumberish
      • _maxAmountsIn: [BigNumberish, BigNumberish]
      • Optional overrides: Overrides & { from?: string | Promise<string> }

      Returns Promise<ContractTransaction>

    • addLiquidity(uint256,uint256,uint256[2])(_pairID: BigNumberish, _poolAmountOut: BigNumberish, _maxAmountsIn: [BigNumberish, BigNumberish], overrides?: Overrides & { from?: string | Promise<string> }): Promise<ContractTransaction>
    • Parameters

      • _pairID: BigNumberish
      • _poolAmountOut: BigNumberish
      • _maxAmountsIn: [BigNumberish, BigNumberish]
      • Optional overrides: Overrides & { from?: string | Promise<string> }

      Returns Promise<ContractTransaction>

    • ammId(overrides?: Overrides & { from?: string | Promise<string> }): Promise<ContractTransaction>
    • Parameters

      • Optional overrides: Overrides & { from?: string | Promise<string> }

      Returns Promise<ContractTransaction>

    • ammId()(overrides?: Overrides & { from?: string | Promise<string> }): Promise<ContractTransaction>
    • Parameters

      • Optional overrides: Overrides & { from?: string | Promise<string> }

      Returns Promise<ContractTransaction>

    • attach(addressOrName: string): IAMM
    • Parameters

      • addressOrName: string

      Returns IAMM

    • calcInAndSpotGivenOut(_pairID: BigNumberish, _tokenIn: BigNumberish, _maxAmountIn: BigNumberish, _tokenOut: BigNumberish, _tokenAmountOut: BigNumberish, overrides?: CallOverrides): Promise<[BigNumber, BigNumber] & { spotPriceAfter: BigNumber; tokenAmountIn: BigNumber }>
    • Parameters

      • _pairID: BigNumberish
      • _tokenIn: BigNumberish
      • _maxAmountIn: BigNumberish
      • _tokenOut: BigNumberish
      • _tokenAmountOut: BigNumberish
      • Optional overrides: CallOverrides

      Returns Promise<[BigNumber, BigNumber] & { spotPriceAfter: BigNumber; tokenAmountIn: BigNumber }>

    • calcInAndSpotGivenOut(uint256,uint256,uint256,uint256,uint256)(_pairID: BigNumberish, _tokenIn: BigNumberish, _maxAmountIn: BigNumberish, _tokenOut: BigNumberish, _tokenAmountOut: BigNumberish, overrides?: CallOverrides): Promise<[BigNumber, BigNumber] & { spotPriceAfter: BigNumber; tokenAmountIn: BigNumber }>
    • Parameters

      • _pairID: BigNumberish
      • _tokenIn: BigNumberish
      • _maxAmountIn: BigNumberish
      • _tokenOut: BigNumberish
      • _tokenAmountOut: BigNumberish
      • Optional overrides: CallOverrides

      Returns Promise<[BigNumber, BigNumber] & { spotPriceAfter: BigNumber; tokenAmountIn: BigNumber }>

    • calcOutAndSpotGivenIn(_pairID: BigNumberish, _tokenIn: BigNumberish, _tokenAmountIn: BigNumberish, _tokenOut: BigNumberish, _minAmountOut: BigNumberish, overrides?: CallOverrides): Promise<[BigNumber, BigNumber] & { spotPriceAfter: BigNumber; tokenAmountOut: BigNumber }>
    • Parameters

      • _pairID: BigNumberish
      • _tokenIn: BigNumberish
      • _tokenAmountIn: BigNumberish
      • _tokenOut: BigNumberish
      • _minAmountOut: BigNumberish
      • Optional overrides: CallOverrides

      Returns Promise<[BigNumber, BigNumber] & { spotPriceAfter: BigNumber; tokenAmountOut: BigNumber }>

    • calcOutAndSpotGivenIn(uint256,uint256,uint256,uint256,uint256)(_pairID: BigNumberish, _tokenIn: BigNumberish, _tokenAmountIn: BigNumberish, _tokenOut: BigNumberish, _minAmountOut: BigNumberish, overrides?: CallOverrides): Promise<[BigNumber, BigNumber] & { spotPriceAfter: BigNumber; tokenAmountOut: BigNumber }>
    • Parameters

      • _pairID: BigNumberish
      • _tokenIn: BigNumberish
      • _tokenAmountIn: BigNumberish
      • _tokenOut: BigNumberish
      • _minAmountOut: BigNumberish
      • Optional overrides: CallOverrides

      Returns Promise<[BigNumber, BigNumber] & { spotPriceAfter: BigNumber; tokenAmountOut: BigNumber }>

    • connect(signerOrProvider: string | Signer | Provider): IAMM
    • Parameters

      • signerOrProvider: string | Signer | Provider

      Returns IAMM

    • createLiquidity(_pairID: BigNumberish, _tokenAmounts: [BigNumberish, BigNumberish], overrides?: Overrides & { from?: string | Promise<string> }): Promise<ContractTransaction>
    • Parameters

      • _pairID: BigNumberish
      • _tokenAmounts: [BigNumberish, BigNumberish]
      • Optional overrides: Overrides & { from?: string | Promise<string> }

      Returns Promise<ContractTransaction>

    • createLiquidity(uint256,uint256[2])(_pairID: BigNumberish, _tokenAmounts: [BigNumberish, BigNumberish], overrides?: Overrides & { from?: string | Promise<string> }): Promise<ContractTransaction>
    • Parameters

      • _pairID: BigNumberish
      • _tokenAmounts: [BigNumberish, BigNumberish]
      • Optional overrides: Overrides & { from?: string | Promise<string> }

      Returns Promise<ContractTransaction>

    • deployed(): Promise<IAMM>
    • Returns Promise<IAMM>

    • emit(eventName: string | EventFilter, ...args: any[]): boolean
    • Parameters

      • eventName: string | EventFilter
      • Rest ...args: any[]

      Returns boolean

    • exitSwapExternAmountOut(_pairID: BigNumberish, _tokenOut: BigNumberish, _tokenAmountOut: BigNumberish, _maxPoolAmountIn: BigNumberish, overrides?: Overrides & { from?: string | Promise<string> }): Promise<ContractTransaction>
    • Parameters

      • _pairID: BigNumberish
      • _tokenOut: BigNumberish
      • _tokenAmountOut: BigNumberish
      • _maxPoolAmountIn: BigNumberish
      • Optional overrides: Overrides & { from?: string | Promise<string> }

      Returns Promise<ContractTransaction>

    • exitSwapExternAmountOut(uint256,uint256,uint256,uint256)(_pairID: BigNumberish, _tokenOut: BigNumberish, _tokenAmountOut: BigNumberish, _maxPoolAmountIn: BigNumberish, overrides?: Overrides & { from?: string | Promise<string> }): Promise<ContractTransaction>
    • Parameters

      • _pairID: BigNumberish
      • _tokenOut: BigNumberish
      • _tokenAmountOut: BigNumberish
      • _maxPoolAmountIn: BigNumberish
      • Optional overrides: Overrides & { from?: string | Promise<string> }

      Returns Promise<ContractTransaction>

    • exitSwapPoolAmountIn(_pairID: BigNumberish, _tokenOut: BigNumberish, _poolAmountIn: BigNumberish, _minAmountOut: BigNumberish, overrides?: Overrides & { from?: string | Promise<string> }): Promise<ContractTransaction>
    • Parameters

      • _pairID: BigNumberish
      • _tokenOut: BigNumberish
      • _poolAmountIn: BigNumberish
      • _minAmountOut: BigNumberish
      • Optional overrides: Overrides & { from?: string | Promise<string> }

      Returns Promise<ContractTransaction>

    • exitSwapPoolAmountIn(uint256,uint256,uint256,uint256)(_pairID: BigNumberish, _tokenOut: BigNumberish, _poolAmountIn: BigNumberish, _minAmountOut: BigNumberish, overrides?: Overrides & { from?: string | Promise<string> }): Promise<ContractTransaction>
    • Parameters

      • _pairID: BigNumberish
      • _tokenOut: BigNumberish
      • _poolAmountIn: BigNumberish
      • _minAmountOut: BigNumberish
      • Optional overrides: Overrides & { from?: string | Promise<string> }

      Returns Promise<ContractTransaction>

    • fallback(overrides?: TransactionRequest): Promise<TransactionResponse>
    • Parameters

      • Optional overrides: TransactionRequest

      Returns Promise<TransactionResponse>

    • finalize(overrides?: Overrides & { from?: string | Promise<string> }): Promise<ContractTransaction>
    • Parameters

      • Optional overrides: Overrides & { from?: string | Promise<string> }

      Returns Promise<ContractTransaction>

    • finalize()(overrides?: Overrides & { from?: string | Promise<string> }): Promise<ContractTransaction>
    • Parameters

      • Optional overrides: Overrides & { from?: string | Promise<string> }

      Returns Promise<ContractTransaction>

    • getExpiredTokensInfo(_user: string, _lpTokenId: BigNumberish, overrides?: CallOverrides): Promise<[BigNumber, BigNumber, BigNumber]>
    • Parameters

      • _user: string
      • _lpTokenId: BigNumberish
      • Optional overrides: CallOverrides

      Returns Promise<[BigNumber, BigNumber, BigNumber]>

    • getExpiredTokensInfo(address,uint256)(_user: string, _lpTokenId: BigNumberish, overrides?: CallOverrides): Promise<[BigNumber, BigNumber, BigNumber]>
    • Parameters

      • _user: string
      • _lpTokenId: BigNumberish
      • Optional overrides: CallOverrides

      Returns Promise<[BigNumber, BigNumber, BigNumber]>

    • getFYTAddress(overrides?: CallOverrides): Promise<string>
    • Parameters

      • Optional overrides: CallOverrides

      Returns Promise<string>

    • getFYTAddress()(overrides?: CallOverrides): Promise<string>
    • Parameters

      • Optional overrides: CallOverrides

      Returns Promise<string>

    • getFutureAddress(overrides?: CallOverrides): Promise<string>
    • Parameters

      • Optional overrides: CallOverrides

      Returns Promise<string>

    • getFutureAddress()(overrides?: CallOverrides): Promise<string>
    • Parameters

      • Optional overrides: CallOverrides

      Returns Promise<string>

    • getLPTokenId(_ammId: BigNumberish, _periodIndex: BigNumberish, _pairID: BigNumberish, overrides?: CallOverrides): Promise<BigNumber>
    • Parameters

      • _ammId: BigNumberish
      • _periodIndex: BigNumberish
      • _pairID: BigNumberish
      • Optional overrides: CallOverrides

      Returns Promise<BigNumber>

    • getLPTokenId(uint256,uint256,uint256)(_ammId: BigNumberish, _periodIndex: BigNumberish, _pairID: BigNumberish, overrides?: CallOverrides): Promise<BigNumber>
    • Parameters

      • _ammId: BigNumberish
      • _periodIndex: BigNumberish
      • _pairID: BigNumberish
      • Optional overrides: CallOverrides

      Returns Promise<BigNumber>

    • getPTAddress(overrides?: CallOverrides): Promise<string>
    • Parameters

      • Optional overrides: CallOverrides

      Returns Promise<string>

    • getPTAddress()(overrides?: CallOverrides): Promise<string>
    • Parameters

      • Optional overrides: CallOverrides

      Returns Promise<string>

    • getPTWeightInPair(overrides?: CallOverrides): Promise<BigNumber>
    • Parameters

      • Optional overrides: CallOverrides

      Returns Promise<BigNumber>

    • getPTWeightInPair()(overrides?: CallOverrides): Promise<BigNumber>
    • Parameters

      • Optional overrides: CallOverrides

      Returns Promise<BigNumber>

    • getPairWithID(_pairID: BigNumberish, overrides?: CallOverrides): Promise<[string, [BigNumber, BigNumber], [BigNumber, BigNumber], boolean] & { balances: [BigNumber, BigNumber]; liquidityIsInitialized: boolean; tokenAddress: string; weights: [BigNumber, BigNumber] }>
    • Parameters

      • _pairID: BigNumberish
      • Optional overrides: CallOverrides

      Returns Promise<[string, [BigNumber, BigNumber], [BigNumber, BigNumber], boolean] & { balances: [BigNumber, BigNumber]; liquidityIsInitialized: boolean; tokenAddress: string; weights: [BigNumber, BigNumber] }>

    • getPairWithID(uint256)(_pairID: BigNumberish, overrides?: CallOverrides): Promise<[string, [BigNumber, BigNumber], [BigNumber, BigNumber], boolean] & { balances: [BigNumber, BigNumber]; liquidityIsInitialized: boolean; tokenAddress: string; weights: [BigNumber, BigNumber] }>
    • Parameters

      • _pairID: BigNumberish
      • Optional overrides: CallOverrides

      Returns Promise<[string, [BigNumber, BigNumber], [BigNumber, BigNumber], boolean] & { balances: [BigNumber, BigNumber]; liquidityIsInitialized: boolean; tokenAddress: string; weights: [BigNumber, BigNumber] }>

    • getSpotPrice(_pairID: BigNumberish, _tokenIn: BigNumberish, _tokenOut: BigNumberish, overrides?: CallOverrides): Promise<BigNumber>
    • Parameters

      • _pairID: BigNumberish
      • _tokenIn: BigNumberish
      • _tokenOut: BigNumberish
      • Optional overrides: CallOverrides

      Returns Promise<BigNumber>

    • getSpotPrice(uint256,uint256,uint256)(_pairID: BigNumberish, _tokenIn: BigNumberish, _tokenOut: BigNumberish, overrides?: CallOverrides): Promise<BigNumber>
    • Parameters

      • _pairID: BigNumberish
      • _tokenIn: BigNumberish
      • _tokenOut: BigNumberish
      • Optional overrides: CallOverrides

      Returns Promise<BigNumber>

    • getUnderlyingOfIBTAddress(overrides?: CallOverrides): Promise<string>
    • Parameters

      • Optional overrides: CallOverrides

      Returns Promise<string>

    • getUnderlyingOfIBTAddress()(overrides?: CallOverrides): Promise<string>
    • Parameters

      • Optional overrides: CallOverrides

      Returns Promise<string>

    • joinSwapExternAmountIn(_pairID: BigNumberish, _tokenIn: BigNumberish, _tokenAmountIn: BigNumberish, _minPoolAmountOut: BigNumberish, overrides?: Overrides & { from?: string | Promise<string> }): Promise<ContractTransaction>
    • Parameters

      • _pairID: BigNumberish
      • _tokenIn: BigNumberish
      • _tokenAmountIn: BigNumberish
      • _minPoolAmountOut: BigNumberish
      • Optional overrides: Overrides & { from?: string | Promise<string> }

      Returns Promise<ContractTransaction>

    • joinSwapExternAmountIn(uint256,uint256,uint256,uint256)(_pairID: BigNumberish, _tokenIn: BigNumberish, _tokenAmountIn: BigNumberish, _minPoolAmountOut: BigNumberish, overrides?: Overrides & { from?: string | Promise<string> }): Promise<ContractTransaction>
    • Parameters

      • _pairID: BigNumberish
      • _tokenIn: BigNumberish
      • _tokenAmountIn: BigNumberish
      • _minPoolAmountOut: BigNumberish
      • Optional overrides: Overrides & { from?: string | Promise<string> }

      Returns Promise<ContractTransaction>

    • joinSwapPoolAmountOut(_pairID: BigNumberish, _tokenIn: BigNumberish, _poolAmountOut: BigNumberish, _maxAmountIn: BigNumberish, overrides?: Overrides & { from?: string | Promise<string> }): Promise<ContractTransaction>
    • Parameters

      • _pairID: BigNumberish
      • _tokenIn: BigNumberish
      • _poolAmountOut: BigNumberish
      • _maxAmountIn: BigNumberish
      • Optional overrides: Overrides & { from?: string | Promise<string> }

      Returns Promise<ContractTransaction>

    • joinSwapPoolAmountOut(uint256,uint256,uint256,uint256)(_pairID: BigNumberish, _tokenIn: BigNumberish, _poolAmountOut: BigNumberish, _maxAmountIn: BigNumberish, overrides?: Overrides & { from?: string | Promise<string> }): Promise<ContractTransaction>
    • Parameters

      • _pairID: BigNumberish
      • _tokenIn: BigNumberish
      • _poolAmountOut: BigNumberish
      • _maxAmountIn: BigNumberish
      • Optional overrides: Overrides & { from?: string | Promise<string> }

      Returns Promise<ContractTransaction>

    • listenerCount(eventName?: string | EventFilter): number
    • Parameters

      • Optional eventName: string | EventFilter

      Returns number

    • listeners<EventArgsArray, EventArgsObject>(eventFilter?: TypedEventFilter<EventArgsArray, EventArgsObject>): TypedListener<EventArgsArray, EventArgsObject>[]
    • listeners(eventName?: string): Listener[]
    • Type parameters

      • EventArgsArray: any[]

      • EventArgsObject

      Parameters

      • Optional eventFilter: TypedEventFilter<EventArgsArray, EventArgsObject>

      Returns TypedListener<EventArgsArray, EventArgsObject>[]

    • Parameters

      • Optional eventName: string

      Returns Listener[]

    • off<EventArgsArray, EventArgsObject>(eventFilter: TypedEventFilter<EventArgsArray, EventArgsObject>, listener: TypedListener<EventArgsArray, EventArgsObject>): IAMM
    • off(eventName: string, listener: Listener): IAMM
    • Type parameters

      • EventArgsArray: any[]

      • EventArgsObject

      Parameters

      • eventFilter: TypedEventFilter<EventArgsArray, EventArgsObject>
      • listener: TypedListener<EventArgsArray, EventArgsObject>

      Returns IAMM

    • Parameters

      • eventName: string
      • listener: Listener

      Returns IAMM

    • on<EventArgsArray, EventArgsObject>(eventFilter: TypedEventFilter<EventArgsArray, EventArgsObject>, listener: TypedListener<EventArgsArray, EventArgsObject>): IAMM
    • on(eventName: string, listener: Listener): IAMM
    • Type parameters

      • EventArgsArray: any[]

      • EventArgsObject

      Parameters

      • eventFilter: TypedEventFilter<EventArgsArray, EventArgsObject>
      • listener: TypedListener<EventArgsArray, EventArgsObject>

      Returns IAMM

    • Parameters

      • eventName: string
      • listener: Listener

      Returns IAMM

    • once<EventArgsArray, EventArgsObject>(eventFilter: TypedEventFilter<EventArgsArray, EventArgsObject>, listener: TypedListener<EventArgsArray, EventArgsObject>): IAMM
    • once(eventName: string, listener: Listener): IAMM
    • Type parameters

      • EventArgsArray: any[]

      • EventArgsObject

      Parameters

      • eventFilter: TypedEventFilter<EventArgsArray, EventArgsObject>
      • listener: TypedListener<EventArgsArray, EventArgsObject>

      Returns IAMM

    • Parameters

      • eventName: string
      • listener: Listener

      Returns IAMM

    • queryFilter<EventArgsArray, EventArgsObject>(event: TypedEventFilter<EventArgsArray, EventArgsObject>, fromBlockOrBlockhash?: string | number, toBlock?: string | number): Promise<TypedEvent<EventArgsArray & EventArgsObject>[]>
    • Type parameters

      • EventArgsArray: any[]

      • EventArgsObject

      Parameters

      • event: TypedEventFilter<EventArgsArray, EventArgsObject>
      • Optional fromBlockOrBlockhash: string | number
      • Optional toBlock: string | number

      Returns Promise<TypedEvent<EventArgsArray & EventArgsObject>[]>

    • removeAllListeners<EventArgsArray, EventArgsObject>(eventFilter: TypedEventFilter<EventArgsArray, EventArgsObject>): IAMM
    • removeAllListeners(eventName?: string): IAMM
    • Type parameters

      • EventArgsArray: any[]

      • EventArgsObject

      Parameters

      • eventFilter: TypedEventFilter<EventArgsArray, EventArgsObject>

      Returns IAMM

    • Parameters

      • Optional eventName: string

      Returns IAMM

    • removeLiquidity(_pairID: BigNumberish, _poolAmountIn: BigNumberish, _minAmountsOut: [BigNumberish, BigNumberish], overrides?: Overrides & { from?: string | Promise<string> }): Promise<ContractTransaction>
    • Parameters

      • _pairID: BigNumberish
      • _poolAmountIn: BigNumberish
      • _minAmountsOut: [BigNumberish, BigNumberish]
      • Optional overrides: Overrides & { from?: string | Promise<string> }

      Returns Promise<ContractTransaction>

    • removeLiquidity(uint256,uint256,uint256[2])(_pairID: BigNumberish, _poolAmountIn: BigNumberish, _minAmountsOut: [BigNumberish, BigNumberish], overrides?: Overrides & { from?: string | Promise<string> }): Promise<ContractTransaction>
    • Parameters

      • _pairID: BigNumberish
      • _poolAmountIn: BigNumberish
      • _minAmountsOut: [BigNumberish, BigNumberish]
      • Optional overrides: Overrides & { from?: string | Promise<string> }

      Returns Promise<ContractTransaction>

    • removeListener<EventArgsArray, EventArgsObject>(eventFilter: TypedEventFilter<EventArgsArray, EventArgsObject>, listener: TypedListener<EventArgsArray, EventArgsObject>): IAMM
    • removeListener(eventName: string, listener: Listener): IAMM
    • Type parameters

      • EventArgsArray: any[]

      • EventArgsObject

      Parameters

      • eventFilter: TypedEventFilter<EventArgsArray, EventArgsObject>
      • listener: TypedListener<EventArgsArray, EventArgsObject>

      Returns IAMM

    • Parameters

      • eventName: string
      • listener: Listener

      Returns IAMM

    • setSwappingFees(_swapFee: BigNumberish, overrides?: Overrides & { from?: string | Promise<string> }): Promise<ContractTransaction>
    • Parameters

      • _swapFee: BigNumberish
      • Optional overrides: Overrides & { from?: string | Promise<string> }

      Returns Promise<ContractTransaction>

    • setSwappingFees(uint256)(_swapFee: BigNumberish, overrides?: Overrides & { from?: string | Promise<string> }): Promise<ContractTransaction>
    • Parameters

      • _swapFee: BigNumberish
      • Optional overrides: Overrides & { from?: string | Promise<string> }

      Returns Promise<ContractTransaction>

    • swapExactAmountIn(_pairID: BigNumberish, _tokenIn: BigNumberish, _tokenAmountIn: BigNumberish, _tokenOut: BigNumberish, _minAmountOut: BigNumberish, _to: string, overrides?: Overrides & { from?: string | Promise<string> }): Promise<ContractTransaction>
    • Parameters

      • _pairID: BigNumberish
      • _tokenIn: BigNumberish
      • _tokenAmountIn: BigNumberish
      • _tokenOut: BigNumberish
      • _minAmountOut: BigNumberish
      • _to: string
      • Optional overrides: Overrides & { from?: string | Promise<string> }

      Returns Promise<ContractTransaction>

    • swapExactAmountIn(uint256,uint256,uint256,uint256,uint256,address)(_pairID: BigNumberish, _tokenIn: BigNumberish, _tokenAmountIn: BigNumberish, _tokenOut: BigNumberish, _minAmountOut: BigNumberish, _to: string, overrides?: Overrides & { from?: string | Promise<string> }): Promise<ContractTransaction>
    • Parameters

      • _pairID: BigNumberish
      • _tokenIn: BigNumberish
      • _tokenAmountIn: BigNumberish
      • _tokenOut: BigNumberish
      • _minAmountOut: BigNumberish
      • _to: string
      • Optional overrides: Overrides & { from?: string | Promise<string> }

      Returns Promise<ContractTransaction>

    • swapExactAmountOut(_pairID: BigNumberish, _tokenIn: BigNumberish, _maxAmountIn: BigNumberish, _tokenOut: BigNumberish, _tokenAmountOut: BigNumberish, _to: string, overrides?: Overrides & { from?: string | Promise<string> }): Promise<ContractTransaction>
    • Parameters

      • _pairID: BigNumberish
      • _tokenIn: BigNumberish
      • _maxAmountIn: BigNumberish
      • _tokenOut: BigNumberish
      • _tokenAmountOut: BigNumberish
      • _to: string
      • Optional overrides: Overrides & { from?: string | Promise<string> }

      Returns Promise<ContractTransaction>

    • swapExactAmountOut(uint256,uint256,uint256,uint256,uint256,address)(_pairID: BigNumberish, _tokenIn: BigNumberish, _maxAmountIn: BigNumberish, _tokenOut: BigNumberish, _tokenAmountOut: BigNumberish, _to: string, overrides?: Overrides & { from?: string | Promise<string> }): Promise<ContractTransaction>
    • Parameters

      • _pairID: BigNumberish
      • _tokenIn: BigNumberish
      • _maxAmountIn: BigNumberish
      • _tokenOut: BigNumberish
      • _tokenAmountOut: BigNumberish
      • _to: string
      • Optional overrides: Overrides & { from?: string | Promise<string> }

      Returns Promise<ContractTransaction>

    • switchPeriod(overrides?: Overrides & { from?: string | Promise<string> }): Promise<ContractTransaction>
    • Parameters

      • Optional overrides: Overrides & { from?: string | Promise<string> }

      Returns Promise<ContractTransaction>

    • switchPeriod()(overrides?: Overrides & { from?: string | Promise<string> }): Promise<ContractTransaction>
    • Parameters

      • Optional overrides: Overrides & { from?: string | Promise<string> }

      Returns Promise<ContractTransaction>

    • togglePauseAmm(overrides?: Overrides & { from?: string | Promise<string> }): Promise<ContractTransaction>
    • Parameters

      • Optional overrides: Overrides & { from?: string | Promise<string> }

      Returns Promise<ContractTransaction>

    • togglePauseAmm()(overrides?: Overrides & { from?: string | Promise<string> }): Promise<ContractTransaction>
    • Parameters

      • Optional overrides: Overrides & { from?: string | Promise<string> }

      Returns Promise<ContractTransaction>

    • withdrawExpiredToken(_user: string, _lpTokenId: BigNumberish, overrides?: Overrides & { from?: string | Promise<string> }): Promise<ContractTransaction>
    • Parameters

      • _user: string
      • _lpTokenId: BigNumberish
      • Optional overrides: Overrides & { from?: string | Promise<string> }

      Returns Promise<ContractTransaction>

    • withdrawExpiredToken(address,uint256)(_user: string, _lpTokenId: BigNumberish, overrides?: Overrides & { from?: string | Promise<string> }): Promise<ContractTransaction>
    • Parameters

      • _user: string
      • _lpTokenId: BigNumberish
      • Optional overrides: Overrides & { from?: string | Promise<string> }

      Returns Promise<ContractTransaction>

    • getContractAddress(transaction: { from: string; nonce: BigNumberish }): string
    • Parameters

      • transaction: { from: string; nonce: BigNumberish }
        • from: string
        • nonce: BigNumberish

      Returns string

    • getInterface(contractInterface: ContractInterface): Interface
    • Parameters

      • contractInterface: ContractInterface

      Returns Interface

    • isIndexed(value: any): value is Indexed
    • Parameters

      • value: any

      Returns value is Indexed

    Generated using TypeDoc, the 11/12/2022