Properties
_deployedPromise
_deployedPromise: Promise<Contract>
_runningEvents
_runningEvents: {}
Type declaration
[eventTag: string]: RunningEvent
_wrappedEmits
_wrappedEmits: {}
Type declaration
[eventTag: string]: (...args: any[]) => void
Readonly address
address: string
callStatic
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>
Readonly deployTransaction
deployTransaction: TransactionResponse
estimateGas
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>
functions
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
interface: IAMMInterface
populateTransaction
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>
Readonly provider
provider: Provider
Readonly resolvedAddress
resolvedAddress: Promise<string>
Readonly signer
signer: Signer