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: { ERC1155_ERC165: any; ERC1155_ERC165(): any; 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; currentPeriodIndex: any; currentPeriodIndex(): any; exitSwapExternAmountOut: any; exitSwapExternAmountOut(uint256,uint256,uint256,uint256): any; exitSwapPoolAmountIn: any; exitSwapPoolAmountIn(uint256,uint256,uint256,uint256): any; finalize: any; finalize(): any; getAMMState: any; getAMMState(): any; getExpiredTokensInfo: any; getExpiredTokensInfo(address,uint256): any; getFYTAddress: any; getFYTAddress(): any; getFutureAddress: any; getFutureAddress(): any; getIBTAddress: any; getIBTAddress(): any; getLPTokenId: any; getLPTokenId(uint256,uint256,uint256): any; getPTAddress: any; getPTAddress(): any; getPTWeightInPair: any; getPTWeightInPair(): any; getPairIDForToken: any; getPairIDForToken(address): any; getPairWithID: any; getPairWithID(uint256): any; getPoolTokenAddress: any; getPoolTokenAddress(): any; getSpotPrice: any; getSpotPrice(uint256,uint256,uint256): any; getTotalSupplyWithTokenId: any; getTotalSupplyWithTokenId(uint256): any; getUnderlyingOfIBTAddress: any; getUnderlyingOfIBTAddress(): any; hasRole: any; hasRole(bytes32,address): any; initialize: any; initialize(uint64,address,address,address,address,address): any; joinSwapExternAmountIn: any; joinSwapExternAmountIn(uint256,uint256,uint256,uint256): any; joinSwapPoolAmountOut: any; joinSwapPoolAmountOut(uint256,uint256,uint256,uint256): any; lastBlockYieldRecorded: any; lastBlockYieldRecorded(): any; lastYieldRecorded: any; lastYieldRecorded(): any; removeLiquidity: any; removeLiquidity(uint256,uint256,uint256[2]): any; rescueFunds: any; rescueFunds(address,address): 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; swapFee: any; swapFee(): any; switchPeriod: any; switchPeriod(): any; togglePauseAmm: any; togglePauseAmm(): any; withdrawExpiredToken: any; withdrawExpiredToken(address,uint256): any }
Type declaration
ERC1155_ERC165:function
- ERC1155_ERC165(overrides?: CallOverrides): Promise<string>
Parameters
Optional overrides: CallOverrides
Returns Promise<string>
ERC1155_ERC165():function
- ERC1155_ERC165()(overrides?: CallOverrides): Promise<string>
Parameters
Optional overrides: CallOverrides
Returns Promise<string>
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>
currentPeriodIndex:function
- currentPeriodIndex(overrides?: CallOverrides): Promise<BigNumber>
Parameters
Optional overrides: CallOverrides
Returns Promise<BigNumber>
currentPeriodIndex():function
- currentPeriodIndex()(overrides?: CallOverrides): Promise<BigNumber>
Parameters
Optional overrides: CallOverrides
Returns Promise<BigNumber>
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>
getAMMState:function
- getAMMState(overrides?: CallOverrides): Promise<number>
Parameters
Optional overrides: CallOverrides
Returns Promise<number>
getAMMState():function
- getAMMState()(overrides?: CallOverrides): Promise<number>
Parameters
Optional overrides: CallOverrides
Returns Promise<number>
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>
getIBTAddress:function
- getIBTAddress(overrides?: CallOverrides): Promise<string>
Parameters
Optional overrides: CallOverrides
Returns Promise<string>
getIBTAddress():function
- getIBTAddress()(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>
getPairIDForToken:function
- getPairIDForToken(_tokenAddress: string, overrides?: CallOverrides): Promise<BigNumber>
Parameters
_tokenAddress: string
Optional overrides: CallOverrides
Returns Promise<BigNumber>
getPairIDForToken(address):function
- getPairIDForToken(address)(_tokenAddress: string, overrides?: CallOverrides): Promise<BigNumber>
Parameters
_tokenAddress: string
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] }>
getPoolTokenAddress:function
- getPoolTokenAddress(overrides?: CallOverrides): Promise<string>
Parameters
Optional overrides: CallOverrides
Returns Promise<string>
getPoolTokenAddress():function
- getPoolTokenAddress()(overrides?: CallOverrides): Promise<string>
Parameters
Optional overrides: CallOverrides
Returns Promise<string>
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>
getTotalSupplyWithTokenId:function
- getTotalSupplyWithTokenId(_tokenId: BigNumberish, overrides?: CallOverrides): Promise<BigNumber>
Parameters
_tokenId: BigNumberish
Optional overrides: CallOverrides
Returns Promise<BigNumber>
getTotalSupplyWithTokenId(uint256):function
- getTotalSupplyWithTokenId(uint256)(_tokenId: BigNumberish, overrides?: CallOverrides): Promise<BigNumber>
Parameters
_tokenId: 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>
hasRole:function
- hasRole(role: BytesLike, account: string, overrides?: CallOverrides): Promise<boolean>
Parameters
role: BytesLike
account: string
Optional overrides: CallOverrides
Returns Promise<boolean>
hasRole(bytes32,address):function
- hasRole(bytes32,address)(role: BytesLike, account: string, overrides?: CallOverrides): Promise<boolean>
Parameters
role: BytesLike
account: string
Optional overrides: CallOverrides
Returns Promise<boolean>
initialize:function
- initialize(_ammId: BigNumberish, _underlyingOfIBTAddress: string, _futureVault: string, _poolTokens: string, _admin: string, _feesRecipient: string, overrides?: CallOverrides): Promise<void>
Parameters
_ammId: BigNumberish
_underlyingOfIBTAddress: string
_futureVault: string
_poolTokens: string
_admin: string
_feesRecipient: string
Optional overrides: CallOverrides
Returns Promise<void>
initialize(uint64,address,address,address,address,address):function
- initialize(uint64,address,address,address,address,address)(_ammId: BigNumberish, _underlyingOfIBTAddress: string, _futureVault: string, _poolTokens: string, _admin: string, _feesRecipient: string, overrides?: CallOverrides): Promise<void>
Parameters
_ammId: BigNumberish
_underlyingOfIBTAddress: string
_futureVault: string
_poolTokens: string
_admin: string
_feesRecipient: string
Optional overrides: CallOverrides
Returns Promise<void>
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>
lastBlockYieldRecorded:function
- lastBlockYieldRecorded(overrides?: CallOverrides): Promise<BigNumber>
Parameters
Optional overrides: CallOverrides
Returns Promise<BigNumber>
lastBlockYieldRecorded():function
- lastBlockYieldRecorded()(overrides?: CallOverrides): Promise<BigNumber>
Parameters
Optional overrides: CallOverrides
Returns Promise<BigNumber>
lastYieldRecorded:function
- lastYieldRecorded(overrides?: CallOverrides): Promise<BigNumber>
Parameters
Optional overrides: CallOverrides
Returns Promise<BigNumber>
lastYieldRecorded():function
- lastYieldRecorded()(overrides?: CallOverrides): Promise<BigNumber>
Parameters
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>
rescueFunds:function
- rescueFunds(_token: string, _recipient: string, overrides?: CallOverrides): Promise<void>
Parameters
_token: string
_recipient: string
Optional overrides: CallOverrides
Returns Promise<void>
rescueFunds(address,address):function
- rescueFunds(address,address)(_token: string, _recipient: string, overrides?: CallOverrides): Promise<void>
Parameters
_token: string
_recipient: string
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 }>
swapFee:function
- swapFee(overrides?: CallOverrides): Promise<BigNumber>
Parameters
Optional overrides: CallOverrides
Returns Promise<BigNumber>
swapFee():function
- swapFee()(overrides?: CallOverrides): Promise<BigNumber>
Parameters
Optional overrides: CallOverrides
Returns Promise<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: { ERC1155_ERC165: any; ERC1155_ERC165(): any; 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; currentPeriodIndex: any; currentPeriodIndex(): any; exitSwapExternAmountOut: any; exitSwapExternAmountOut(uint256,uint256,uint256,uint256): any; exitSwapPoolAmountIn: any; exitSwapPoolAmountIn(uint256,uint256,uint256,uint256): any; finalize: any; finalize(): any; getAMMState: any; getAMMState(): any; getExpiredTokensInfo: any; getExpiredTokensInfo(address,uint256): any; getFYTAddress: any; getFYTAddress(): any; getFutureAddress: any; getFutureAddress(): any; getIBTAddress: any; getIBTAddress(): any; getLPTokenId: any; getLPTokenId(uint256,uint256,uint256): any; getPTAddress: any; getPTAddress(): any; getPTWeightInPair: any; getPTWeightInPair(): any; getPairIDForToken: any; getPairIDForToken(address): any; getPairWithID: any; getPairWithID(uint256): any; getPoolTokenAddress: any; getPoolTokenAddress(): any; getSpotPrice: any; getSpotPrice(uint256,uint256,uint256): any; getTotalSupplyWithTokenId: any; getTotalSupplyWithTokenId(uint256): any; getUnderlyingOfIBTAddress: any; getUnderlyingOfIBTAddress(): any; hasRole: any; hasRole(bytes32,address): any; initialize: any; initialize(uint64,address,address,address,address,address): any; joinSwapExternAmountIn: any; joinSwapExternAmountIn(uint256,uint256,uint256,uint256): any; joinSwapPoolAmountOut: any; joinSwapPoolAmountOut(uint256,uint256,uint256,uint256): any; lastBlockYieldRecorded: any; lastBlockYieldRecorded(): any; lastYieldRecorded: any; lastYieldRecorded(): any; removeLiquidity: any; removeLiquidity(uint256,uint256,uint256[2]): any; rescueFunds: any; rescueFunds(address,address): 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; swapFee: any; swapFee(): any; switchPeriod: any; switchPeriod(): any; togglePauseAmm: any; togglePauseAmm(): any; withdrawExpiredToken: any; withdrawExpiredToken(address,uint256): any }
Type declaration
ERC1155_ERC165:function
- ERC1155_ERC165(overrides?: CallOverrides): Promise<BigNumber>
Parameters
Optional overrides: CallOverrides
Returns Promise<BigNumber>
ERC1155_ERC165():function
- ERC1155_ERC165()(overrides?: CallOverrides): Promise<BigNumber>
Parameters
Optional overrides: CallOverrides
Returns Promise<BigNumber>
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?: 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>
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>
currentPeriodIndex:function
- currentPeriodIndex(overrides?: CallOverrides): Promise<BigNumber>
Parameters
Optional overrides: CallOverrides
Returns Promise<BigNumber>
currentPeriodIndex():function
- currentPeriodIndex()(overrides?: CallOverrides): Promise<BigNumber>
Parameters
Optional overrides: CallOverrides
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>
getAMMState:function
- getAMMState(overrides?: CallOverrides): Promise<BigNumber>
Parameters
Optional overrides: CallOverrides
Returns Promise<BigNumber>
getAMMState():function
- getAMMState()(overrides?: CallOverrides): Promise<BigNumber>
Parameters
Optional overrides: CallOverrides
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>
getIBTAddress:function
- getIBTAddress(overrides?: CallOverrides): Promise<BigNumber>
Parameters
Optional overrides: CallOverrides
Returns Promise<BigNumber>
getIBTAddress():function
- getIBTAddress()(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>
getPairIDForToken:function
- getPairIDForToken(_tokenAddress: string, overrides?: CallOverrides): Promise<BigNumber>
Parameters
_tokenAddress: string
Optional overrides: CallOverrides
Returns Promise<BigNumber>
getPairIDForToken(address):function
- getPairIDForToken(address)(_tokenAddress: string, overrides?: CallOverrides): Promise<BigNumber>
Parameters
_tokenAddress: string
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>
getPoolTokenAddress:function
- getPoolTokenAddress(overrides?: CallOverrides): Promise<BigNumber>
Parameters
Optional overrides: CallOverrides
Returns Promise<BigNumber>
getPoolTokenAddress():function
- getPoolTokenAddress()(overrides?: CallOverrides): Promise<BigNumber>
Parameters
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>
getTotalSupplyWithTokenId:function
- getTotalSupplyWithTokenId(_tokenId: BigNumberish, overrides?: CallOverrides): Promise<BigNumber>
Parameters
_tokenId: BigNumberish
Optional overrides: CallOverrides
Returns Promise<BigNumber>
getTotalSupplyWithTokenId(uint256):function
- getTotalSupplyWithTokenId(uint256)(_tokenId: BigNumberish, overrides?: CallOverrides): Promise<BigNumber>
Parameters
_tokenId: 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>
hasRole:function
- hasRole(role: BytesLike, account: string, overrides?: CallOverrides): Promise<BigNumber>
Parameters
role: BytesLike
account: string
Optional overrides: CallOverrides
Returns Promise<BigNumber>
hasRole(bytes32,address):function
- hasRole(bytes32,address)(role: BytesLike, account: string, overrides?: CallOverrides): Promise<BigNumber>
Parameters
role: BytesLike
account: string
Optional overrides: CallOverrides
Returns Promise<BigNumber>
initialize:function
- initialize(_ammId: BigNumberish, _underlyingOfIBTAddress: string, _futureVault: string, _poolTokens: string, _admin: string, _feesRecipient: string, overrides?: Overrides & { from?: string | Promise<string> }): Promise<BigNumber>
Parameters
_ammId: BigNumberish
_underlyingOfIBTAddress: string
_futureVault: string
_poolTokens: string
_admin: string
_feesRecipient: string
Optional overrides: Overrides & { from?: string | Promise<string> }
Returns Promise<BigNumber>
initialize(uint64,address,address,address,address,address):function
- initialize(uint64,address,address,address,address,address)(_ammId: BigNumberish, _underlyingOfIBTAddress: string, _futureVault: string, _poolTokens: string, _admin: string, _feesRecipient: string, overrides?: Overrides & { from?: string | Promise<string> }): Promise<BigNumber>
Parameters
_ammId: BigNumberish
_underlyingOfIBTAddress: string
_futureVault: string
_poolTokens: string
_admin: string
_feesRecipient: string
Optional overrides: Overrides & { from?: string | Promise<string> }
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>
lastBlockYieldRecorded:function
- lastBlockYieldRecorded(overrides?: CallOverrides): Promise<BigNumber>
Parameters
Optional overrides: CallOverrides
Returns Promise<BigNumber>
lastBlockYieldRecorded():function
- lastBlockYieldRecorded()(overrides?: CallOverrides): Promise<BigNumber>
Parameters
Optional overrides: CallOverrides
Returns Promise<BigNumber>
lastYieldRecorded:function
- lastYieldRecorded(overrides?: CallOverrides): Promise<BigNumber>
Parameters
Optional overrides: CallOverrides
Returns Promise<BigNumber>
lastYieldRecorded():function
- lastYieldRecorded()(overrides?: CallOverrides): Promise<BigNumber>
Parameters
Optional overrides: CallOverrides
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>
rescueFunds:function
- rescueFunds(_token: string, _recipient: string, overrides?: Overrides & { from?: string | Promise<string> }): Promise<BigNumber>
Parameters
_token: string
_recipient: string
Optional overrides: Overrides & { from?: string | Promise<string> }
Returns Promise<BigNumber>
rescueFunds(address,address):function
- rescueFunds(address,address)(_token: string, _recipient: string, overrides?: Overrides & { from?: string | Promise<string> }): Promise<BigNumber>
Parameters
_token: string
_recipient: string
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>
swapFee:function
- swapFee(overrides?: CallOverrides): Promise<BigNumber>
Parameters
Optional overrides: CallOverrides
Returns Promise<BigNumber>
swapFee():function
- swapFee()(overrides?: CallOverrides): Promise<BigNumber>
Parameters
Optional overrides: CallOverrides
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
filters: { AMMStateChanged: any; ExpiredTokensWithdrawn: any; LiquidityCreated: any; LiquidityDecreased: any; LiquidityIncreased: any; PairCreated: any; PeriodSwitched: any; PoolExited: any; PoolJoined: any; RoleGranted: any; Swapped: any; SwappingFeeSet: any; WeightUpdated: any }
Type declaration
AMMStateChanged:function
- AMMStateChanged(_newState: null): TypedEventFilter<[number], { _newState: number }>
Parameters
Returns TypedEventFilter<[number], { _newState: number }>
ExpiredTokensWithdrawn:function
- ExpiredTokensWithdrawn(_user: null, _amount: null): TypedEventFilter<[string, BigNumber], { _amount: BigNumber; _user: string }>
Parameters
Returns TypedEventFilter<[string, BigNumber], { _amount: BigNumber; _user: string }>
LiquidityCreated:function
- LiquidityCreated(_user: null, _pairID: null): TypedEventFilter<[string, BigNumber], { _pairID: BigNumber; _user: string }>
Parameters
Returns TypedEventFilter<[string, BigNumber], { _pairID: BigNumber; _user: string }>
LiquidityDecreased:function
- LiquidityDecreased(_to: null, _pairID: null, _tokenID: null, _amount: null): TypedEventFilter<[string, BigNumber, BigNumber, BigNumber], { _amount: BigNumber; _pairID: BigNumber; _to: string; _tokenID: BigNumber }>
Parameters
_to: null
_pairID: null
_tokenID: null
_amount: null
Returns TypedEventFilter<[string, BigNumber, BigNumber, BigNumber], { _amount: BigNumber; _pairID: BigNumber; _to: string; _tokenID: BigNumber }>
LiquidityIncreased:function
- LiquidityIncreased(_from: null, _pairID: null, _tokenID: null, _amount: null): TypedEventFilter<[string, BigNumber, BigNumber, BigNumber], { _amount: BigNumber; _from: string; _pairID: BigNumber; _tokenID: BigNumber }>
Parameters
_from: null
_pairID: null
_tokenID: null
_amount: null
Returns TypedEventFilter<[string, BigNumber, BigNumber, BigNumber], { _amount: BigNumber; _from: string; _pairID: BigNumber; _tokenID: BigNumber }>
PairCreated:function
- PairCreated(_pairID: null | BigNumberish, _token: null): TypedEventFilter<[BigNumber, string], { _pairID: BigNumber; _token: string }>
Parameters
_pairID: null | BigNumberish
_token: null
Returns TypedEventFilter<[BigNumber, string], { _pairID: BigNumber; _token: string }>
PeriodSwitched:function
- PeriodSwitched(_newPeriodIndex: null): TypedEventFilter<[BigNumber], { _newPeriodIndex: BigNumber }>
Parameters
Returns TypedEventFilter<[BigNumber], { _newPeriodIndex: BigNumber }>
PoolExited:function
- PoolExited(_user: null, _pairID: null, _poolTokenAmount: null): TypedEventFilter<[string, BigNumber, BigNumber], { _pairID: BigNumber; _poolTokenAmount: BigNumber; _user: string }>
Parameters
_user: null
_pairID: null
_poolTokenAmount: null
Returns TypedEventFilter<[string, BigNumber, BigNumber], { _pairID: BigNumber; _poolTokenAmount: BigNumber; _user: string }>
PoolJoined:function
- PoolJoined(_user: null, _pairID: null, _poolTokenAmount: null): TypedEventFilter<[string, BigNumber, BigNumber], { _pairID: BigNumber; _poolTokenAmount: BigNumber; _user: string }>
Parameters
_user: null
_pairID: null
_poolTokenAmount: null
Returns TypedEventFilter<[string, BigNumber, BigNumber], { _pairID: BigNumber; _poolTokenAmount: BigNumber; _user: string }>
RoleGranted:function
- RoleGranted(role: null | BytesLike, account: null | string, sender: null | string): TypedEventFilter<[string, string, string], { account: string; role: string; sender: string }>
Parameters
role: null | BytesLike
account: null | string
sender: null | string
Returns TypedEventFilter<[string, string, string], { account: string; role: string; sender: string }>
Swapped:function
- Swapped(_user: null, _pairID: null, _tokenInID: null, _tokenOutID: null, _tokenAmountIn: null, _tokenAmountOut: null, _to: null): TypedEventFilter<[string, BigNumber, BigNumber, BigNumber, BigNumber, BigNumber, string], { _pairID: BigNumber; _to: string; _tokenAmountIn: BigNumber; _tokenAmountOut: BigNumber; _tokenInID: BigNumber; _tokenOutID: BigNumber; _user: string }>
Parameters
_user: null
_pairID: null
_tokenInID: null
_tokenOutID: null
_tokenAmountIn: null
_tokenAmountOut: null
_to: null
Returns TypedEventFilter<[string, BigNumber, BigNumber, BigNumber, BigNumber, BigNumber, string], { _pairID: BigNumber; _to: string; _tokenAmountIn: BigNumber; _tokenAmountOut: BigNumber; _tokenInID: BigNumber; _tokenOutID: BigNumber; _user: string }>
SwappingFeeSet:function
- SwappingFeeSet(_swapFee: null): TypedEventFilter<[BigNumber], { _swapFee: BigNumber }>
Parameters
Returns TypedEventFilter<[BigNumber], { _swapFee: BigNumber }>
WeightUpdated:function
- WeightUpdated(_token: null, _newWeights: null): TypedEventFilter<[string, [BigNumber, BigNumber]], { _newWeights: [BigNumber, BigNumber]; _token: string }>
Parameters
_token: null
_newWeights: null
Returns TypedEventFilter<[string, [BigNumber, BigNumber]], { _newWeights: [BigNumber, BigNumber]; _token: string }>
functions
functions: { ERC1155_ERC165: any; ERC1155_ERC165(): any; 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; currentPeriodIndex: any; currentPeriodIndex(): any; exitSwapExternAmountOut: any; exitSwapExternAmountOut(uint256,uint256,uint256,uint256): any; exitSwapPoolAmountIn: any; exitSwapPoolAmountIn(uint256,uint256,uint256,uint256): any; finalize: any; finalize(): any; getAMMState: any; getAMMState(): any; getExpiredTokensInfo: any; getExpiredTokensInfo(address,uint256): any; getFYTAddress: any; getFYTAddress(): any; getFutureAddress: any; getFutureAddress(): any; getIBTAddress: any; getIBTAddress(): any; getLPTokenId: any; getLPTokenId(uint256,uint256,uint256): any; getPTAddress: any; getPTAddress(): any; getPTWeightInPair: any; getPTWeightInPair(): any; getPairIDForToken: any; getPairIDForToken(address): any; getPairWithID: any; getPairWithID(uint256): any; getPoolTokenAddress: any; getPoolTokenAddress(): any; getSpotPrice: any; getSpotPrice(uint256,uint256,uint256): any; getTotalSupplyWithTokenId: any; getTotalSupplyWithTokenId(uint256): any; getUnderlyingOfIBTAddress: any; getUnderlyingOfIBTAddress(): any; hasRole: any; hasRole(bytes32,address): any; initialize: any; initialize(uint64,address,address,address,address,address): any; joinSwapExternAmountIn: any; joinSwapExternAmountIn(uint256,uint256,uint256,uint256): any; joinSwapPoolAmountOut: any; joinSwapPoolAmountOut(uint256,uint256,uint256,uint256): any; lastBlockYieldRecorded: any; lastBlockYieldRecorded(): any; lastYieldRecorded: any; lastYieldRecorded(): any; removeLiquidity: any; removeLiquidity(uint256,uint256,uint256[2]): any; rescueFunds: any; rescueFunds(address,address): 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; swapFee: any; swapFee(): any; switchPeriod: any; switchPeriod(): any; togglePauseAmm: any; togglePauseAmm(): any; withdrawExpiredToken: any; withdrawExpiredToken(address,uint256): any }
Type declaration
ERC1155_ERC165:function
- ERC1155_ERC165(overrides?: CallOverrides): Promise<[string]>
Parameters
Optional overrides: CallOverrides
Returns Promise<[string]>
ERC1155_ERC165():function
- ERC1155_ERC165()(overrides?: CallOverrides): Promise<[string]>
Parameters
Optional overrides: CallOverrides
Returns Promise<[string]>
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?: 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?: 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>
currentPeriodIndex:function
- currentPeriodIndex(overrides?: CallOverrides): Promise<[BigNumber]>
Parameters
Optional overrides: CallOverrides
Returns Promise<[BigNumber]>
currentPeriodIndex():function
- currentPeriodIndex()(overrides?: CallOverrides): Promise<[BigNumber]>
Parameters
Optional overrides: CallOverrides
Returns Promise<[BigNumber]>
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>
getAMMState:function
- getAMMState(overrides?: CallOverrides): Promise<[number]>
Parameters
Optional overrides: CallOverrides
Returns Promise<[number]>
getAMMState():function
- getAMMState()(overrides?: CallOverrides): Promise<[number]>
Parameters
Optional overrides: CallOverrides
Returns Promise<[number]>
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]>
getIBTAddress:function
- getIBTAddress(overrides?: CallOverrides): Promise<[string]>
Parameters
Optional overrides: CallOverrides
Returns Promise<[string]>
getIBTAddress():function
- getIBTAddress()(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]>
getPairIDForToken:function
- getPairIDForToken(_tokenAddress: string, overrides?: CallOverrides): Promise<[BigNumber]>
Parameters
_tokenAddress: string
Optional overrides: CallOverrides
Returns Promise<[BigNumber]>
getPairIDForToken(address):function
- getPairIDForToken(address)(_tokenAddress: string, overrides?: CallOverrides): Promise<[BigNumber]>
Parameters
_tokenAddress: string
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] }]>
getPoolTokenAddress:function
- getPoolTokenAddress(overrides?: CallOverrides): Promise<[string]>
Parameters
Optional overrides: CallOverrides
Returns Promise<[string]>
getPoolTokenAddress():function
- getPoolTokenAddress()(overrides?: CallOverrides): Promise<[string]>
Parameters
Optional overrides: CallOverrides
Returns Promise<[string]>
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]>
getTotalSupplyWithTokenId:function
- getTotalSupplyWithTokenId(_tokenId: BigNumberish, overrides?: CallOverrides): Promise<[BigNumber]>
Parameters
_tokenId: BigNumberish
Optional overrides: CallOverrides
Returns Promise<[BigNumber]>
getTotalSupplyWithTokenId(uint256):function
- getTotalSupplyWithTokenId(uint256)(_tokenId: BigNumberish, overrides?: CallOverrides): Promise<[BigNumber]>
Parameters
_tokenId: 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]>
hasRole:function
- hasRole(role: BytesLike, account: string, overrides?: CallOverrides): Promise<[boolean]>
Parameters
role: BytesLike
account: string
Optional overrides: CallOverrides
Returns Promise<[boolean]>
hasRole(bytes32,address):function
- hasRole(bytes32,address)(role: BytesLike, account: string, overrides?: CallOverrides): Promise<[boolean]>
Parameters
role: BytesLike
account: string
Optional overrides: CallOverrides
Returns Promise<[boolean]>
initialize:function
- initialize(_ammId: BigNumberish, _underlyingOfIBTAddress: string, _futureVault: string, _poolTokens: string, _admin: string, _feesRecipient: string, overrides?: Overrides & { from?: string | Promise<string> }): Promise<ContractTransaction>
Parameters
_ammId: BigNumberish
_underlyingOfIBTAddress: string
_futureVault: string
_poolTokens: string
_admin: string
_feesRecipient: string
Optional overrides: Overrides & { from?: string | Promise<string> }
Returns Promise<ContractTransaction>
initialize(uint64,address,address,address,address,address):function
- initialize(uint64,address,address,address,address,address)(_ammId: BigNumberish, _underlyingOfIBTAddress: string, _futureVault: string, _poolTokens: string, _admin: string, _feesRecipient: string, overrides?: Overrides & { from?: string | Promise<string> }): Promise<ContractTransaction>
Parameters
_ammId: BigNumberish
_underlyingOfIBTAddress: string
_futureVault: string
_poolTokens: string
_admin: string
_feesRecipient: string
Optional overrides: Overrides & { from?: string | Promise<string> }
Returns Promise<ContractTransaction>
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>
lastBlockYieldRecorded:function
- lastBlockYieldRecorded(overrides?: CallOverrides): Promise<[BigNumber]>
Parameters
Optional overrides: CallOverrides
Returns Promise<[BigNumber]>
lastBlockYieldRecorded():function
- lastBlockYieldRecorded()(overrides?: CallOverrides): Promise<[BigNumber]>
Parameters
Optional overrides: CallOverrides
Returns Promise<[BigNumber]>
lastYieldRecorded:function
- lastYieldRecorded(overrides?: CallOverrides): Promise<[BigNumber]>
Parameters
Optional overrides: CallOverrides
Returns Promise<[BigNumber]>
lastYieldRecorded():function
- lastYieldRecorded()(overrides?: CallOverrides): Promise<[BigNumber]>
Parameters
Optional overrides: CallOverrides
Returns Promise<[BigNumber]>
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>
rescueFunds:function
- rescueFunds(_token: string, _recipient: string, overrides?: Overrides & { from?: string | Promise<string> }): Promise<ContractTransaction>
Parameters
_token: string
_recipient: string
Optional overrides: Overrides & { from?: string | Promise<string> }
Returns Promise<ContractTransaction>
rescueFunds(address,address):function
- rescueFunds(address,address)(_token: string, _recipient: string, overrides?: Overrides & { from?: string | Promise<string> }): Promise<ContractTransaction>
Parameters
_token: string
_recipient: string
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>
swapFee:function
- swapFee(overrides?: CallOverrides): Promise<[BigNumber]>
Parameters
Optional overrides: CallOverrides
Returns Promise<[BigNumber]>
swapFee():function
- swapFee()(overrides?: CallOverrides): Promise<[BigNumber]>
Parameters
Optional overrides: CallOverrides
Returns Promise<[BigNumber]>
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: AMMInterface
populateTransaction
populateTransaction: { ERC1155_ERC165: any; ERC1155_ERC165(): any; 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; currentPeriodIndex: any; currentPeriodIndex(): any; exitSwapExternAmountOut: any; exitSwapExternAmountOut(uint256,uint256,uint256,uint256): any; exitSwapPoolAmountIn: any; exitSwapPoolAmountIn(uint256,uint256,uint256,uint256): any; finalize: any; finalize(): any; getAMMState: any; getAMMState(): any; getExpiredTokensInfo: any; getExpiredTokensInfo(address,uint256): any; getFYTAddress: any; getFYTAddress(): any; getFutureAddress: any; getFutureAddress(): any; getIBTAddress: any; getIBTAddress(): any; getLPTokenId: any; getLPTokenId(uint256,uint256,uint256): any; getPTAddress: any; getPTAddress(): any; getPTWeightInPair: any; getPTWeightInPair(): any; getPairIDForToken: any; getPairIDForToken(address): any; getPairWithID: any; getPairWithID(uint256): any; getPoolTokenAddress: any; getPoolTokenAddress(): any; getSpotPrice: any; getSpotPrice(uint256,uint256,uint256): any; getTotalSupplyWithTokenId: any; getTotalSupplyWithTokenId(uint256): any; getUnderlyingOfIBTAddress: any; getUnderlyingOfIBTAddress(): any; hasRole: any; hasRole(bytes32,address): any; initialize: any; initialize(uint64,address,address,address,address,address): any; joinSwapExternAmountIn: any; joinSwapExternAmountIn(uint256,uint256,uint256,uint256): any; joinSwapPoolAmountOut: any; joinSwapPoolAmountOut(uint256,uint256,uint256,uint256): any; lastBlockYieldRecorded: any; lastBlockYieldRecorded(): any; lastYieldRecorded: any; lastYieldRecorded(): any; removeLiquidity: any; removeLiquidity(uint256,uint256,uint256[2]): any; rescueFunds: any; rescueFunds(address,address): 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; swapFee: any; swapFee(): any; switchPeriod: any; switchPeriod(): any; togglePauseAmm: any; togglePauseAmm(): any; withdrawExpiredToken: any; withdrawExpiredToken(address,uint256): any }
Type declaration
ERC1155_ERC165:function
- ERC1155_ERC165(overrides?: CallOverrides): Promise<PopulatedTransaction>
Parameters
Optional overrides: CallOverrides
Returns Promise<PopulatedTransaction>
ERC1155_ERC165():function
- ERC1155_ERC165()(overrides?: CallOverrides): Promise<PopulatedTransaction>
Parameters
Optional overrides: CallOverrides
Returns Promise<PopulatedTransaction>
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?: CallOverrides): Promise<PopulatedTransaction>
Parameters
Optional overrides: CallOverrides
Returns Promise<PopulatedTransaction>
ammId():function
- ammId()(overrides?: CallOverrides): Promise<PopulatedTransaction>
Parameters
Optional overrides: CallOverrides
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>
currentPeriodIndex:function
- currentPeriodIndex(overrides?: CallOverrides): Promise<PopulatedTransaction>
Parameters
Optional overrides: CallOverrides
Returns Promise<PopulatedTransaction>
currentPeriodIndex():function
- currentPeriodIndex()(overrides?: CallOverrides): Promise<PopulatedTransaction>
Parameters
Optional overrides: CallOverrides
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>
getAMMState:function
- getAMMState(overrides?: CallOverrides): Promise<PopulatedTransaction>
Parameters
Optional overrides: CallOverrides
Returns Promise<PopulatedTransaction>
getAMMState():function
- getAMMState()(overrides?: CallOverrides): Promise<PopulatedTransaction>
Parameters
Optional overrides: CallOverrides
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>
getIBTAddress:function
- getIBTAddress(overrides?: CallOverrides): Promise<PopulatedTransaction>
Parameters
Optional overrides: CallOverrides
Returns Promise<PopulatedTransaction>
getIBTAddress():function
- getIBTAddress()(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>
getPairIDForToken:function
- getPairIDForToken(_tokenAddress: string, overrides?: CallOverrides): Promise<PopulatedTransaction>
Parameters
_tokenAddress: string
Optional overrides: CallOverrides
Returns Promise<PopulatedTransaction>
getPairIDForToken(address):function
- getPairIDForToken(address)(_tokenAddress: string, overrides?: CallOverrides): Promise<PopulatedTransaction>
Parameters
_tokenAddress: string
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>
getPoolTokenAddress:function
- getPoolTokenAddress(overrides?: CallOverrides): Promise<PopulatedTransaction>
Parameters
Optional overrides: CallOverrides
Returns Promise<PopulatedTransaction>
getPoolTokenAddress():function
- getPoolTokenAddress()(overrides?: CallOverrides): Promise<PopulatedTransaction>
Parameters
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>
getTotalSupplyWithTokenId:function
- getTotalSupplyWithTokenId(_tokenId: BigNumberish, overrides?: CallOverrides): Promise<PopulatedTransaction>
Parameters
_tokenId: BigNumberish
Optional overrides: CallOverrides
Returns Promise<PopulatedTransaction>
getTotalSupplyWithTokenId(uint256):function
- getTotalSupplyWithTokenId(uint256)(_tokenId: BigNumberish, overrides?: CallOverrides): Promise<PopulatedTransaction>
Parameters
_tokenId: 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>
hasRole:function
- hasRole(role: BytesLike, account: string, overrides?: CallOverrides): Promise<PopulatedTransaction>
Parameters
role: BytesLike
account: string
Optional overrides: CallOverrides
Returns Promise<PopulatedTransaction>
hasRole(bytes32,address):function
- hasRole(bytes32,address)(role: BytesLike, account: string, overrides?: CallOverrides): Promise<PopulatedTransaction>
Parameters
role: BytesLike
account: string
Optional overrides: CallOverrides
Returns Promise<PopulatedTransaction>
initialize:function
- initialize(_ammId: BigNumberish, _underlyingOfIBTAddress: string, _futureVault: string, _poolTokens: string, _admin: string, _feesRecipient: string, overrides?: Overrides & { from?: string | Promise<string> }): Promise<PopulatedTransaction>
Parameters
_ammId: BigNumberish
_underlyingOfIBTAddress: string
_futureVault: string
_poolTokens: string
_admin: string
_feesRecipient: string
Optional overrides: Overrides & { from?: string | Promise<string> }
Returns Promise<PopulatedTransaction>
initialize(uint64,address,address,address,address,address):function
- initialize(uint64,address,address,address,address,address)(_ammId: BigNumberish, _underlyingOfIBTAddress: string, _futureVault: string, _poolTokens: string, _admin: string, _feesRecipient: string, overrides?: Overrides & { from?: string | Promise<string> }): Promise<PopulatedTransaction>
Parameters
_ammId: BigNumberish
_underlyingOfIBTAddress: string
_futureVault: string
_poolTokens: string
_admin: string
_feesRecipient: string
Optional overrides: Overrides & { from?: string | Promise<string> }
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>
lastBlockYieldRecorded:function
- lastBlockYieldRecorded(overrides?: CallOverrides): Promise<PopulatedTransaction>
Parameters
Optional overrides: CallOverrides
Returns Promise<PopulatedTransaction>
lastBlockYieldRecorded():function
- lastBlockYieldRecorded()(overrides?: CallOverrides): Promise<PopulatedTransaction>
Parameters
Optional overrides: CallOverrides
Returns Promise<PopulatedTransaction>
lastYieldRecorded:function
- lastYieldRecorded(overrides?: CallOverrides): Promise<PopulatedTransaction>
Parameters
Optional overrides: CallOverrides
Returns Promise<PopulatedTransaction>
lastYieldRecorded():function
- lastYieldRecorded()(overrides?: CallOverrides): Promise<PopulatedTransaction>
Parameters
Optional overrides: CallOverrides
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>
rescueFunds:function
- rescueFunds(_token: string, _recipient: string, overrides?: Overrides & { from?: string | Promise<string> }): Promise<PopulatedTransaction>
Parameters
_token: string
_recipient: string
Optional overrides: Overrides & { from?: string | Promise<string> }
Returns Promise<PopulatedTransaction>
rescueFunds(address,address):function
- rescueFunds(address,address)(_token: string, _recipient: string, overrides?: Overrides & { from?: string | Promise<string> }): Promise<PopulatedTransaction>
Parameters
_token: string
_recipient: string
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>
swapFee:function
- swapFee(overrides?: CallOverrides): Promise<PopulatedTransaction>
Parameters
Optional overrides: CallOverrides
Returns Promise<PopulatedTransaction>
swapFee():function
- swapFee()(overrides?: CallOverrides): Promise<PopulatedTransaction>
Parameters
Optional overrides: CallOverrides
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