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: { DEFAULT_ADMIN_ROLE: any; DEFAULT_ADMIN_ROLE(): any; GOVERNANCE_FEE: any; GOVERNANCE_FEE(): any; REFERRAL_FEE: any; REFERRAL_FEE(address): any; collectGovernanceFee: any; collectGovernanceFee(address,address): any; getAmountIn: any; getAmountIn(address,uint256[],uint256[],uint256): any; getAmountOut: any; getAmountOut(address,uint256[],uint256[],uint256): any; getRoleAdmin: any; getRoleAdmin(bytes32): any; getRoleMember: any; getRoleMember(bytes32,uint256): any; getRoleMemberCount: any; getRoleMemberCount(bytes32): any; getSpotPrice: any; getSpotPrice(address,uint256[],uint256[]): any; grantRole: any; grantRole(bytes32,address): any; hasRole: any; hasRole(bytes32,address): any; initialize: any; initialize(address,address): any; registry: any; registry(): any; renounceRole: any; renounceRole(bytes32,address): any; revokeRole: any; revokeRole(bytes32,address): any; setGovernanceFee: any; setGovernanceFee(uint256): any; setReferral: any; setReferral(address,uint256): any; setRegistry: any; setRegistry(address): any; swapExactAmountIn: any; swapExactAmountIn(address,uint256[],uint256[],uint256,uint256,address,uint256,address): any; swapExactAmountOut: any; swapExactAmountOut(address,uint256[],uint256[],uint256,uint256,address,uint256,address): any; updateAllTokenApprovalOf: any; updateAllTokenApprovalOf(address): any; updateFYTApprovalOf: any; updateFYTApprovalOf(address): any }
Type declaration
DEFAULT_ADMIN_ROLE:function
- DEFAULT_ADMIN_ROLE(overrides?: CallOverrides): Promise<string>
Parameters
Optional overrides: CallOverrides
Returns Promise<string>
DEFAULT_ADMIN_ROLE():function
- DEFAULT_ADMIN_ROLE()(overrides?: CallOverrides): Promise<string>
Parameters
Optional overrides: CallOverrides
Returns Promise<string>
GOVERNANCE_FEE:function
- GOVERNANCE_FEE(overrides?: CallOverrides): Promise<BigNumber>
Parameters
Optional overrides: CallOverrides
Returns Promise<BigNumber>
GOVERNANCE_FEE():function
- GOVERNANCE_FEE()(overrides?: CallOverrides): Promise<BigNumber>
Parameters
Optional overrides: CallOverrides
Returns Promise<BigNumber>
REFERRAL_FEE:function
- REFERRAL_FEE(arg0: string, overrides?: CallOverrides): Promise<BigNumber>
Parameters
arg0: string
Optional overrides: CallOverrides
Returns Promise<BigNumber>
REFERRAL_FEE(address):function
- REFERRAL_FEE(address)(arg0: string, overrides?: CallOverrides): Promise<BigNumber>
Parameters
arg0: string
Optional overrides: CallOverrides
Returns Promise<BigNumber>
collectGovernanceFee:function
- collectGovernanceFee(_token: string, _recipient: string, overrides?: CallOverrides): Promise<void>
Parameters
_token: string
_recipient: string
Optional overrides: CallOverrides
Returns Promise<void>
collectGovernanceFee(address,address):function
- collectGovernanceFee(address,address)(_token: string, _recipient: string, overrides?: CallOverrides): Promise<void>
Parameters
_token: string
_recipient: string
Optional overrides: CallOverrides
Returns Promise<void>
getAmountIn:function
- getAmountIn(_amm: string, _pairPath: BigNumberish[], _tokenPath: BigNumberish[], _tokenAmountOut: BigNumberish, overrides?: CallOverrides): Promise<BigNumber>
Parameters
_amm: string
_pairPath: BigNumberish[]
_tokenPath: BigNumberish[]
_tokenAmountOut: BigNumberish
Optional overrides: CallOverrides
Returns Promise<BigNumber>
getAmountIn(address,uint256[],uint256[],uint256):function
- getAmountIn(address,uint256[],uint256[],uint256)(_amm: string, _pairPath: BigNumberish[], _tokenPath: BigNumberish[], _tokenAmountOut: BigNumberish, overrides?: CallOverrides): Promise<BigNumber>
Parameters
_amm: string
_pairPath: BigNumberish[]
_tokenPath: BigNumberish[]
_tokenAmountOut: BigNumberish
Optional overrides: CallOverrides
Returns Promise<BigNumber>
getAmountOut:function
- getAmountOut(_amm: string, _pairPath: BigNumberish[], _tokenPath: BigNumberish[], _tokenAmountIn: BigNumberish, overrides?: CallOverrides): Promise<BigNumber>
Parameters
_amm: string
_pairPath: BigNumberish[]
_tokenPath: BigNumberish[]
_tokenAmountIn: BigNumberish
Optional overrides: CallOverrides
Returns Promise<BigNumber>
getAmountOut(address,uint256[],uint256[],uint256):function
- getAmountOut(address,uint256[],uint256[],uint256)(_amm: string, _pairPath: BigNumberish[], _tokenPath: BigNumberish[], _tokenAmountIn: BigNumberish, overrides?: CallOverrides): Promise<BigNumber>
Parameters
_amm: string
_pairPath: BigNumberish[]
_tokenPath: BigNumberish[]
_tokenAmountIn: BigNumberish
Optional overrides: CallOverrides
Returns Promise<BigNumber>
getRoleAdmin:function
- getRoleAdmin(role: BytesLike, overrides?: CallOverrides): Promise<string>
Parameters
role: BytesLike
Optional overrides: CallOverrides
Returns Promise<string>
getRoleAdmin(bytes32):function
- getRoleAdmin(bytes32)(role: BytesLike, overrides?: CallOverrides): Promise<string>
Parameters
role: BytesLike
Optional overrides: CallOverrides
Returns Promise<string>
getRoleMember:function
- getRoleMember(role: BytesLike, index: BigNumberish, overrides?: CallOverrides): Promise<string>
Parameters
role: BytesLike
index: BigNumberish
Optional overrides: CallOverrides
Returns Promise<string>
getRoleMember(bytes32,uint256):function
- getRoleMember(bytes32,uint256)(role: BytesLike, index: BigNumberish, overrides?: CallOverrides): Promise<string>
Parameters
role: BytesLike
index: BigNumberish
Optional overrides: CallOverrides
Returns Promise<string>
getRoleMemberCount:function
- getRoleMemberCount(role: BytesLike, overrides?: CallOverrides): Promise<BigNumber>
Parameters
role: BytesLike
Optional overrides: CallOverrides
Returns Promise<BigNumber>
getRoleMemberCount(bytes32):function
- getRoleMemberCount(bytes32)(role: BytesLike, overrides?: CallOverrides): Promise<BigNumber>
Parameters
role: BytesLike
Optional overrides: CallOverrides
Returns Promise<BigNumber>
getSpotPrice:function
- getSpotPrice(_amm: string, _pairPath: BigNumberish[], _tokenPath: BigNumberish[], overrides?: CallOverrides): Promise<BigNumber>
Parameters
_amm: string
_pairPath: BigNumberish[]
_tokenPath: BigNumberish[]
Optional overrides: CallOverrides
Returns Promise<BigNumber>
getSpotPrice(address,uint256[],uint256[]):function
- getSpotPrice(address,uint256[],uint256[])(_amm: string, _pairPath: BigNumberish[], _tokenPath: BigNumberish[], overrides?: CallOverrides): Promise<BigNumber>
Parameters
_amm: string
_pairPath: BigNumberish[]
_tokenPath: BigNumberish[]
Optional overrides: CallOverrides
Returns Promise<BigNumber>
grantRole:function
- grantRole(role: BytesLike, account: string, overrides?: CallOverrides): Promise<void>
Parameters
role: BytesLike
account: string
Optional overrides: CallOverrides
Returns Promise<void>
grantRole(bytes32,address):function
- grantRole(bytes32,address)(role: BytesLike, account: string, overrides?: CallOverrides): Promise<void>
Parameters
role: BytesLike
account: string
Optional overrides: CallOverrides
Returns Promise<void>
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(_registry: string, _admin: string, overrides?: CallOverrides): Promise<void>
Parameters
_registry: string
_admin: string
Optional overrides: CallOverrides
Returns Promise<void>
initialize(address,address):function
- initialize(address,address)(_registry: string, _admin: string, overrides?: CallOverrides): Promise<void>
Parameters
_registry: string
_admin: string
Optional overrides: CallOverrides
Returns Promise<void>
registry:function
- registry(overrides?: CallOverrides): Promise<string>
Parameters
Optional overrides: CallOverrides
Returns Promise<string>
registry():function
- registry()(overrides?: CallOverrides): Promise<string>
Parameters
Optional overrides: CallOverrides
Returns Promise<string>
renounceRole:function
- renounceRole(role: BytesLike, account: string, overrides?: CallOverrides): Promise<void>
Parameters
role: BytesLike
account: string
Optional overrides: CallOverrides
Returns Promise<void>
renounceRole(bytes32,address):function
- renounceRole(bytes32,address)(role: BytesLike, account: string, overrides?: CallOverrides): Promise<void>
Parameters
role: BytesLike
account: string
Optional overrides: CallOverrides
Returns Promise<void>
revokeRole:function
- revokeRole(role: BytesLike, account: string, overrides?: CallOverrides): Promise<void>
Parameters
role: BytesLike
account: string
Optional overrides: CallOverrides
Returns Promise<void>
revokeRole(bytes32,address):function
- revokeRole(bytes32,address)(role: BytesLike, account: string, overrides?: CallOverrides): Promise<void>
Parameters
role: BytesLike
account: string
Optional overrides: CallOverrides
Returns Promise<void>
setGovernanceFee:function
- setGovernanceFee(_fee: BigNumberish, overrides?: CallOverrides): Promise<void>
Parameters
_fee: BigNumberish
Optional overrides: CallOverrides
Returns Promise<void>
setGovernanceFee(uint256):function
- setGovernanceFee(uint256)(_fee: BigNumberish, overrides?: CallOverrides): Promise<void>
Parameters
_fee: BigNumberish
Optional overrides: CallOverrides
Returns Promise<void>
setReferral:function
- setReferral(_recipient: string, _fee: BigNumberish, overrides?: CallOverrides): Promise<void>
Parameters
_recipient: string
_fee: BigNumberish
Optional overrides: CallOverrides
Returns Promise<void>
setReferral(address,uint256):function
- setReferral(address,uint256)(_recipient: string, _fee: BigNumberish, overrides?: CallOverrides): Promise<void>
Parameters
_recipient: string
_fee: BigNumberish
Optional overrides: CallOverrides
Returns Promise<void>
setRegistry:function
- setRegistry(_registry: string, overrides?: CallOverrides): Promise<void>
Parameters
_registry: string
Optional overrides: CallOverrides
Returns Promise<void>
setRegistry(address):function
- setRegistry(address)(_registry: string, overrides?: CallOverrides): Promise<void>
Parameters
_registry: string
Optional overrides: CallOverrides
Returns Promise<void>
swapExactAmountIn:function
- swapExactAmountIn(_amm: string, _pairPath: BigNumberish[], _tokenPath: BigNumberish[], _tokenAmountIn: BigNumberish, _minAmountOut: BigNumberish, _to: string, _deadline: BigNumberish, _referralRecipient: string, overrides?: CallOverrides): Promise<BigNumber>
Parameters
_amm: string
_pairPath: BigNumberish[]
_tokenPath: BigNumberish[]
_tokenAmountIn: BigNumberish
_minAmountOut: BigNumberish
_to: string
_deadline: BigNumberish
_referralRecipient: string
Optional overrides: CallOverrides
Returns Promise<BigNumber>
swapExactAmountIn(address,uint256[],uint256[],uint256,uint256,address,uint256,address):function
- swapExactAmountIn(address,uint256[],uint256[],uint256,uint256,address,uint256,address)(_amm: string, _pairPath: BigNumberish[], _tokenPath: BigNumberish[], _tokenAmountIn: BigNumberish, _minAmountOut: BigNumberish, _to: string, _deadline: BigNumberish, _referralRecipient: string, overrides?: CallOverrides): Promise<BigNumber>
Parameters
_amm: string
_pairPath: BigNumberish[]
_tokenPath: BigNumberish[]
_tokenAmountIn: BigNumberish
_minAmountOut: BigNumberish
_to: string
_deadline: BigNumberish
_referralRecipient: string
Optional overrides: CallOverrides
Returns Promise<BigNumber>
swapExactAmountOut:function
- swapExactAmountOut(_amm: string, _pairPath: BigNumberish[], _tokenPath: BigNumberish[], _maxAmountIn: BigNumberish, _tokenAmountOut: BigNumberish, _to: string, _deadline: BigNumberish, _referralRecipient: string, overrides?: CallOverrides): Promise<BigNumber>
Parameters
_amm: string
_pairPath: BigNumberish[]
_tokenPath: BigNumberish[]
_maxAmountIn: BigNumberish
_tokenAmountOut: BigNumberish
_to: string
_deadline: BigNumberish
_referralRecipient: string
Optional overrides: CallOverrides
Returns Promise<BigNumber>
swapExactAmountOut(address,uint256[],uint256[],uint256,uint256,address,uint256,address):function
- swapExactAmountOut(address,uint256[],uint256[],uint256,uint256,address,uint256,address)(_amm: string, _pairPath: BigNumberish[], _tokenPath: BigNumberish[], _maxAmountIn: BigNumberish, _tokenAmountOut: BigNumberish, _to: string, _deadline: BigNumberish, _referralRecipient: string, overrides?: CallOverrides): Promise<BigNumber>
Parameters
_amm: string
_pairPath: BigNumberish[]
_tokenPath: BigNumberish[]
_maxAmountIn: BigNumberish
_tokenAmountOut: BigNumberish
_to: string
_deadline: BigNumberish
_referralRecipient: string
Optional overrides: CallOverrides
Returns Promise<BigNumber>
updateAllTokenApprovalOf:function
- updateAllTokenApprovalOf(_amm: string, overrides?: CallOverrides): Promise<void>
Parameters
_amm: string
Optional overrides: CallOverrides
Returns Promise<void>
updateAllTokenApprovalOf(address):function
- updateAllTokenApprovalOf(address)(_amm: string, overrides?: CallOverrides): Promise<void>
Parameters
_amm: string
Optional overrides: CallOverrides
Returns Promise<void>
updateFYTApprovalOf:function
- updateFYTApprovalOf(_amm: string, overrides?: CallOverrides): Promise<void>
Parameters
_amm: string
Optional overrides: CallOverrides
Returns Promise<void>
updateFYTApprovalOf(address):function
- updateFYTApprovalOf(address)(_amm: string, overrides?: CallOverrides): Promise<void>
Parameters
_amm: string
Optional overrides: CallOverrides
Returns Promise<void>
Readonly deployTransaction
deployTransaction: TransactionResponse
estimateGas
estimateGas: { DEFAULT_ADMIN_ROLE: any; DEFAULT_ADMIN_ROLE(): any; GOVERNANCE_FEE: any; GOVERNANCE_FEE(): any; REFERRAL_FEE: any; REFERRAL_FEE(address): any; collectGovernanceFee: any; collectGovernanceFee(address,address): any; getAmountIn: any; getAmountIn(address,uint256[],uint256[],uint256): any; getAmountOut: any; getAmountOut(address,uint256[],uint256[],uint256): any; getRoleAdmin: any; getRoleAdmin(bytes32): any; getRoleMember: any; getRoleMember(bytes32,uint256): any; getRoleMemberCount: any; getRoleMemberCount(bytes32): any; getSpotPrice: any; getSpotPrice(address,uint256[],uint256[]): any; grantRole: any; grantRole(bytes32,address): any; hasRole: any; hasRole(bytes32,address): any; initialize: any; initialize(address,address): any; registry: any; registry(): any; renounceRole: any; renounceRole(bytes32,address): any; revokeRole: any; revokeRole(bytes32,address): any; setGovernanceFee: any; setGovernanceFee(uint256): any; setReferral: any; setReferral(address,uint256): any; setRegistry: any; setRegistry(address): any; swapExactAmountIn: any; swapExactAmountIn(address,uint256[],uint256[],uint256,uint256,address,uint256,address): any; swapExactAmountOut: any; swapExactAmountOut(address,uint256[],uint256[],uint256,uint256,address,uint256,address): any; updateAllTokenApprovalOf: any; updateAllTokenApprovalOf(address): any; updateFYTApprovalOf: any; updateFYTApprovalOf(address): any }
Type declaration
DEFAULT_ADMIN_ROLE:function
- DEFAULT_ADMIN_ROLE(overrides?: CallOverrides): Promise<BigNumber>
Parameters
Optional overrides: CallOverrides
Returns Promise<BigNumber>
DEFAULT_ADMIN_ROLE():function
- DEFAULT_ADMIN_ROLE()(overrides?: CallOverrides): Promise<BigNumber>
Parameters
Optional overrides: CallOverrides
Returns Promise<BigNumber>
GOVERNANCE_FEE:function
- GOVERNANCE_FEE(overrides?: CallOverrides): Promise<BigNumber>
Parameters
Optional overrides: CallOverrides
Returns Promise<BigNumber>
GOVERNANCE_FEE():function
- GOVERNANCE_FEE()(overrides?: CallOverrides): Promise<BigNumber>
Parameters
Optional overrides: CallOverrides
Returns Promise<BigNumber>
REFERRAL_FEE:function
- REFERRAL_FEE(arg0: string, overrides?: CallOverrides): Promise<BigNumber>
Parameters
arg0: string
Optional overrides: CallOverrides
Returns Promise<BigNumber>
REFERRAL_FEE(address):function
- REFERRAL_FEE(address)(arg0: string, overrides?: CallOverrides): Promise<BigNumber>
Parameters
arg0: string
Optional overrides: CallOverrides
Returns Promise<BigNumber>
collectGovernanceFee:function
- collectGovernanceFee(_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>
collectGovernanceFee(address,address):function
- collectGovernanceFee(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>
getAmountIn:function
- getAmountIn(_amm: string, _pairPath: BigNumberish[], _tokenPath: BigNumberish[], _tokenAmountOut: BigNumberish, overrides?: CallOverrides): Promise<BigNumber>
Parameters
_amm: string
_pairPath: BigNumberish[]
_tokenPath: BigNumberish[]
_tokenAmountOut: BigNumberish
Optional overrides: CallOverrides
Returns Promise<BigNumber>
getAmountIn(address,uint256[],uint256[],uint256):function
- getAmountIn(address,uint256[],uint256[],uint256)(_amm: string, _pairPath: BigNumberish[], _tokenPath: BigNumberish[], _tokenAmountOut: BigNumberish, overrides?: CallOverrides): Promise<BigNumber>
Parameters
_amm: string
_pairPath: BigNumberish[]
_tokenPath: BigNumberish[]
_tokenAmountOut: BigNumberish
Optional overrides: CallOverrides
Returns Promise<BigNumber>
getAmountOut:function
- getAmountOut(_amm: string, _pairPath: BigNumberish[], _tokenPath: BigNumberish[], _tokenAmountIn: BigNumberish, overrides?: CallOverrides): Promise<BigNumber>
Parameters
_amm: string
_pairPath: BigNumberish[]
_tokenPath: BigNumberish[]
_tokenAmountIn: BigNumberish
Optional overrides: CallOverrides
Returns Promise<BigNumber>
getAmountOut(address,uint256[],uint256[],uint256):function
- getAmountOut(address,uint256[],uint256[],uint256)(_amm: string, _pairPath: BigNumberish[], _tokenPath: BigNumberish[], _tokenAmountIn: BigNumberish, overrides?: CallOverrides): Promise<BigNumber>
Parameters
_amm: string
_pairPath: BigNumberish[]
_tokenPath: BigNumberish[]
_tokenAmountIn: BigNumberish
Optional overrides: CallOverrides
Returns Promise<BigNumber>
getRoleAdmin:function
- getRoleAdmin(role: BytesLike, overrides?: CallOverrides): Promise<BigNumber>
Parameters
role: BytesLike
Optional overrides: CallOverrides
Returns Promise<BigNumber>
getRoleAdmin(bytes32):function
- getRoleAdmin(bytes32)(role: BytesLike, overrides?: CallOverrides): Promise<BigNumber>
Parameters
role: BytesLike
Optional overrides: CallOverrides
Returns Promise<BigNumber>
getRoleMember:function
- getRoleMember(role: BytesLike, index: BigNumberish, overrides?: CallOverrides): Promise<BigNumber>
Parameters
role: BytesLike
index: BigNumberish
Optional overrides: CallOverrides
Returns Promise<BigNumber>
getRoleMember(bytes32,uint256):function
- getRoleMember(bytes32,uint256)(role: BytesLike, index: BigNumberish, overrides?: CallOverrides): Promise<BigNumber>
Parameters
role: BytesLike
index: BigNumberish
Optional overrides: CallOverrides
Returns Promise<BigNumber>
getRoleMemberCount:function
- getRoleMemberCount(role: BytesLike, overrides?: CallOverrides): Promise<BigNumber>
Parameters
role: BytesLike
Optional overrides: CallOverrides
Returns Promise<BigNumber>
getRoleMemberCount(bytes32):function
- getRoleMemberCount(bytes32)(role: BytesLike, overrides?: CallOverrides): Promise<BigNumber>
Parameters
role: BytesLike
Optional overrides: CallOverrides
Returns Promise<BigNumber>
getSpotPrice:function
- getSpotPrice(_amm: string, _pairPath: BigNumberish[], _tokenPath: BigNumberish[], overrides?: CallOverrides): Promise<BigNumber>
Parameters
_amm: string
_pairPath: BigNumberish[]
_tokenPath: BigNumberish[]
Optional overrides: CallOverrides
Returns Promise<BigNumber>
getSpotPrice(address,uint256[],uint256[]):function
- getSpotPrice(address,uint256[],uint256[])(_amm: string, _pairPath: BigNumberish[], _tokenPath: BigNumberish[], overrides?: CallOverrides): Promise<BigNumber>
Parameters
_amm: string
_pairPath: BigNumberish[]
_tokenPath: BigNumberish[]
Optional overrides: CallOverrides
Returns Promise<BigNumber>
grantRole:function
- grantRole(role: BytesLike, account: string, overrides?: Overrides & { from?: string | Promise<string> }): Promise<BigNumber>
Parameters
role: BytesLike
account: string
Optional overrides: Overrides & { from?: string | Promise<string> }
Returns Promise<BigNumber>
grantRole(bytes32,address):function
- grantRole(bytes32,address)(role: BytesLike, account: string, overrides?: Overrides & { from?: string | Promise<string> }): Promise<BigNumber>
Parameters
role: BytesLike
account: string
Optional overrides: Overrides & { from?: string | Promise<string> }
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(_registry: string, _admin: string, overrides?: Overrides & { from?: string | Promise<string> }): Promise<BigNumber>
Parameters
_registry: string
_admin: string
Optional overrides: Overrides & { from?: string | Promise<string> }
Returns Promise<BigNumber>
initialize(address,address):function
- initialize(address,address)(_registry: string, _admin: string, overrides?: Overrides & { from?: string | Promise<string> }): Promise<BigNumber>
Parameters
_registry: string
_admin: string
Optional overrides: Overrides & { from?: string | Promise<string> }
Returns Promise<BigNumber>
registry:function
- registry(overrides?: CallOverrides): Promise<BigNumber>
Parameters
Optional overrides: CallOverrides
Returns Promise<BigNumber>
registry():function
- registry()(overrides?: CallOverrides): Promise<BigNumber>
Parameters
Optional overrides: CallOverrides
Returns Promise<BigNumber>
renounceRole:function
- renounceRole(role: BytesLike, account: string, overrides?: Overrides & { from?: string | Promise<string> }): Promise<BigNumber>
Parameters
role: BytesLike
account: string
Optional overrides: Overrides & { from?: string | Promise<string> }
Returns Promise<BigNumber>
renounceRole(bytes32,address):function
- renounceRole(bytes32,address)(role: BytesLike, account: string, overrides?: Overrides & { from?: string | Promise<string> }): Promise<BigNumber>
Parameters
role: BytesLike
account: string
Optional overrides: Overrides & { from?: string | Promise<string> }
Returns Promise<BigNumber>
revokeRole:function
- revokeRole(role: BytesLike, account: string, overrides?: Overrides & { from?: string | Promise<string> }): Promise<BigNumber>
Parameters
role: BytesLike
account: string
Optional overrides: Overrides & { from?: string | Promise<string> }
Returns Promise<BigNumber>
revokeRole(bytes32,address):function
- revokeRole(bytes32,address)(role: BytesLike, account: string, overrides?: Overrides & { from?: string | Promise<string> }): Promise<BigNumber>
Parameters
role: BytesLike
account: string
Optional overrides: Overrides & { from?: string | Promise<string> }
Returns Promise<BigNumber>
setGovernanceFee:function
- setGovernanceFee(_fee: BigNumberish, overrides?: Overrides & { from?: string | Promise<string> }): Promise<BigNumber>
Parameters
_fee: BigNumberish
Optional overrides: Overrides & { from?: string | Promise<string> }
Returns Promise<BigNumber>
setGovernanceFee(uint256):function
- setGovernanceFee(uint256)(_fee: BigNumberish, overrides?: Overrides & { from?: string | Promise<string> }): Promise<BigNumber>
Parameters
_fee: BigNumberish
Optional overrides: Overrides & { from?: string | Promise<string> }
Returns Promise<BigNumber>
setReferral:function
- setReferral(_recipient: string, _fee: BigNumberish, overrides?: Overrides & { from?: string | Promise<string> }): Promise<BigNumber>
Parameters
_recipient: string
_fee: BigNumberish
Optional overrides: Overrides & { from?: string | Promise<string> }
Returns Promise<BigNumber>
setReferral(address,uint256):function
- setReferral(address,uint256)(_recipient: string, _fee: BigNumberish, overrides?: Overrides & { from?: string | Promise<string> }): Promise<BigNumber>
Parameters
_recipient: string
_fee: BigNumberish
Optional overrides: Overrides & { from?: string | Promise<string> }
Returns Promise<BigNumber>
setRegistry:function
- setRegistry(_registry: string, overrides?: Overrides & { from?: string | Promise<string> }): Promise<BigNumber>
Parameters
_registry: string
Optional overrides: Overrides & { from?: string | Promise<string> }
Returns Promise<BigNumber>
setRegistry(address):function
- setRegistry(address)(_registry: string, overrides?: Overrides & { from?: string | Promise<string> }): Promise<BigNumber>
Parameters
_registry: string
Optional overrides: Overrides & { from?: string | Promise<string> }
Returns Promise<BigNumber>
swapExactAmountIn:function
- swapExactAmountIn(_amm: string, _pairPath: BigNumberish[], _tokenPath: BigNumberish[], _tokenAmountIn: BigNumberish, _minAmountOut: BigNumberish, _to: string, _deadline: BigNumberish, _referralRecipient: string, overrides?: Overrides & { from?: string | Promise<string> }): Promise<BigNumber>
Parameters
_amm: string
_pairPath: BigNumberish[]
_tokenPath: BigNumberish[]
_tokenAmountIn: BigNumberish
_minAmountOut: BigNumberish
_to: string
_deadline: BigNumberish
_referralRecipient: string
Optional overrides: Overrides & { from?: string | Promise<string> }
Returns Promise<BigNumber>
swapExactAmountIn(address,uint256[],uint256[],uint256,uint256,address,uint256,address):function
- swapExactAmountIn(address,uint256[],uint256[],uint256,uint256,address,uint256,address)(_amm: string, _pairPath: BigNumberish[], _tokenPath: BigNumberish[], _tokenAmountIn: BigNumberish, _minAmountOut: BigNumberish, _to: string, _deadline: BigNumberish, _referralRecipient: string, overrides?: Overrides & { from?: string | Promise<string> }): Promise<BigNumber>
Parameters
_amm: string
_pairPath: BigNumberish[]
_tokenPath: BigNumberish[]
_tokenAmountIn: BigNumberish
_minAmountOut: BigNumberish
_to: string
_deadline: BigNumberish
_referralRecipient: string
Optional overrides: Overrides & { from?: string | Promise<string> }
Returns Promise<BigNumber>
swapExactAmountOut:function
- swapExactAmountOut(_amm: string, _pairPath: BigNumberish[], _tokenPath: BigNumberish[], _maxAmountIn: BigNumberish, _tokenAmountOut: BigNumberish, _to: string, _deadline: BigNumberish, _referralRecipient: string, overrides?: Overrides & { from?: string | Promise<string> }): Promise<BigNumber>
Parameters
_amm: string
_pairPath: BigNumberish[]
_tokenPath: BigNumberish[]
_maxAmountIn: BigNumberish
_tokenAmountOut: BigNumberish
_to: string
_deadline: BigNumberish
_referralRecipient: string
Optional overrides: Overrides & { from?: string | Promise<string> }
Returns Promise<BigNumber>
swapExactAmountOut(address,uint256[],uint256[],uint256,uint256,address,uint256,address):function
- swapExactAmountOut(address,uint256[],uint256[],uint256,uint256,address,uint256,address)(_amm: string, _pairPath: BigNumberish[], _tokenPath: BigNumberish[], _maxAmountIn: BigNumberish, _tokenAmountOut: BigNumberish, _to: string, _deadline: BigNumberish, _referralRecipient: string, overrides?: Overrides & { from?: string | Promise<string> }): Promise<BigNumber>
Parameters
_amm: string
_pairPath: BigNumberish[]
_tokenPath: BigNumberish[]
_maxAmountIn: BigNumberish
_tokenAmountOut: BigNumberish
_to: string
_deadline: BigNumberish
_referralRecipient: string
Optional overrides: Overrides & { from?: string | Promise<string> }
Returns Promise<BigNumber>
updateAllTokenApprovalOf:function
- updateAllTokenApprovalOf(_amm: string, overrides?: Overrides & { from?: string | Promise<string> }): Promise<BigNumber>
Parameters
_amm: string
Optional overrides: Overrides & { from?: string | Promise<string> }
Returns Promise<BigNumber>
updateAllTokenApprovalOf(address):function
- updateAllTokenApprovalOf(address)(_amm: string, overrides?: Overrides & { from?: string | Promise<string> }): Promise<BigNumber>
Parameters
_amm: string
Optional overrides: Overrides & { from?: string | Promise<string> }
Returns Promise<BigNumber>
updateFYTApprovalOf:function
- updateFYTApprovalOf(_amm: string, overrides?: Overrides & { from?: string | Promise<string> }): Promise<BigNumber>
Parameters
_amm: string
Optional overrides: Overrides & { from?: string | Promise<string> }
Returns Promise<BigNumber>
updateFYTApprovalOf(address):function
- updateFYTApprovalOf(address)(_amm: string, overrides?: Overrides & { from?: string | Promise<string> }): Promise<BigNumber>
Parameters
_amm: string
Optional overrides: Overrides & { from?: string | Promise<string> }
Returns Promise<BigNumber>
filters
filters: { GovernanceFeeCollected: any; GovernanceFeeUpdated: any; ReferralFeePaid: any; ReferralRecipientAdded: any; ReferralRecipientRemoved: any; ReferralSet: any; RegistrySet: any; RoleAdminChanged: any; RoleGranted: any; RoleRevoked: any; TokenApproved: any }
Type declaration
GovernanceFeeCollected:function
- GovernanceFeeCollected(_token: null, _amount: null, _recipient: null): TypedEventFilter<[string, BigNumber, string], { _amount: BigNumber; _recipient: string; _token: string }>
Parameters
_token: null
_amount: null
_recipient: null
Returns TypedEventFilter<[string, BigNumber, string], { _amount: BigNumber; _recipient: string; _token: string }>
GovernanceFeeUpdated:function
- GovernanceFeeUpdated(_fee: null): TypedEventFilter<[BigNumber], { _fee: BigNumber }>
Parameters
Returns TypedEventFilter<[BigNumber], { _fee: BigNumber }>
ReferralFeePaid:function
- ReferralFeePaid(_recipient: null, _feeAmount: null): TypedEventFilter<[string, BigNumber], { _feeAmount: BigNumber; _recipient: string }>
Parameters
_recipient: null
_feeAmount: null
Returns TypedEventFilter<[string, BigNumber], { _feeAmount: BigNumber; _recipient: string }>
ReferralRecipientAdded:function
- ReferralRecipientAdded(_recipient: null): TypedEventFilter<[string], { _recipient: string }>
Parameters
Returns TypedEventFilter<[string], { _recipient: string }>
ReferralRecipientRemoved:function
- ReferralRecipientRemoved(_recipient: null): TypedEventFilter<[string], { _recipient: string }>
Parameters
Returns TypedEventFilter<[string], { _recipient: string }>
ReferralSet:function
- ReferralSet(_recipient: null, _fee: null): TypedEventFilter<[string, BigNumber], { _fee: BigNumber; _recipient: string }>
Parameters
_recipient: null
_fee: null
Returns TypedEventFilter<[string, BigNumber], { _fee: BigNumber; _recipient: string }>
RegistrySet:function
- RegistrySet(_registry: null): TypedEventFilter<[string], { _registry: string }>
Parameters
Returns TypedEventFilter<[string], { _registry: string }>
RoleAdminChanged:function
- RoleAdminChanged(role: null | BytesLike, previousAdminRole: null | BytesLike, newAdminRole: null | BytesLike): TypedEventFilter<[string, string, string], { newAdminRole: string; previousAdminRole: string; role: string }>
Parameters
role: null | BytesLike
previousAdminRole: null | BytesLike
newAdminRole: null | BytesLike
Returns TypedEventFilter<[string, string, string], { newAdminRole: string; previousAdminRole: string; role: 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 }>
RoleRevoked:function
- RoleRevoked(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 }>
TokenApproved:function
- TokenApproved(_token: null, _amm: null): TypedEventFilter<[string, string], { _amm: string; _token: string }>
Parameters
Returns TypedEventFilter<[string, string], { _amm: string; _token: string }>
functions
functions: { DEFAULT_ADMIN_ROLE: any; DEFAULT_ADMIN_ROLE(): any; GOVERNANCE_FEE: any; GOVERNANCE_FEE(): any; REFERRAL_FEE: any; REFERRAL_FEE(address): any; collectGovernanceFee: any; collectGovernanceFee(address,address): any; getAmountIn: any; getAmountIn(address,uint256[],uint256[],uint256): any; getAmountOut: any; getAmountOut(address,uint256[],uint256[],uint256): any; getRoleAdmin: any; getRoleAdmin(bytes32): any; getRoleMember: any; getRoleMember(bytes32,uint256): any; getRoleMemberCount: any; getRoleMemberCount(bytes32): any; getSpotPrice: any; getSpotPrice(address,uint256[],uint256[]): any; grantRole: any; grantRole(bytes32,address): any; hasRole: any; hasRole(bytes32,address): any; initialize: any; initialize(address,address): any; registry: any; registry(): any; renounceRole: any; renounceRole(bytes32,address): any; revokeRole: any; revokeRole(bytes32,address): any; setGovernanceFee: any; setGovernanceFee(uint256): any; setReferral: any; setReferral(address,uint256): any; setRegistry: any; setRegistry(address): any; swapExactAmountIn: any; swapExactAmountIn(address,uint256[],uint256[],uint256,uint256,address,uint256,address): any; swapExactAmountOut: any; swapExactAmountOut(address,uint256[],uint256[],uint256,uint256,address,uint256,address): any; updateAllTokenApprovalOf: any; updateAllTokenApprovalOf(address): any; updateFYTApprovalOf: any; updateFYTApprovalOf(address): any }
Type declaration
DEFAULT_ADMIN_ROLE:function
- DEFAULT_ADMIN_ROLE(overrides?: CallOverrides): Promise<[string]>
Parameters
Optional overrides: CallOverrides
Returns Promise<[string]>
DEFAULT_ADMIN_ROLE():function
- DEFAULT_ADMIN_ROLE()(overrides?: CallOverrides): Promise<[string]>
Parameters
Optional overrides: CallOverrides
Returns Promise<[string]>
GOVERNANCE_FEE:function
- GOVERNANCE_FEE(overrides?: CallOverrides): Promise<[BigNumber]>
Parameters
Optional overrides: CallOverrides
Returns Promise<[BigNumber]>
GOVERNANCE_FEE():function
- GOVERNANCE_FEE()(overrides?: CallOverrides): Promise<[BigNumber]>
Parameters
Optional overrides: CallOverrides
Returns Promise<[BigNumber]>
REFERRAL_FEE:function
- REFERRAL_FEE(arg0: string, overrides?: CallOverrides): Promise<[BigNumber]>
Parameters
arg0: string
Optional overrides: CallOverrides
Returns Promise<[BigNumber]>
REFERRAL_FEE(address):function
- REFERRAL_FEE(address)(arg0: string, overrides?: CallOverrides): Promise<[BigNumber]>
Parameters
arg0: string
Optional overrides: CallOverrides
Returns Promise<[BigNumber]>
collectGovernanceFee:function
- collectGovernanceFee(_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>
collectGovernanceFee(address,address):function
- collectGovernanceFee(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>
getAmountIn:function
- getAmountIn(_amm: string, _pairPath: BigNumberish[], _tokenPath: BigNumberish[], _tokenAmountOut: BigNumberish, overrides?: CallOverrides): Promise<[BigNumber] & { tokenAmountIn: BigNumber }>
Parameters
_amm: string
_pairPath: BigNumberish[]
_tokenPath: BigNumberish[]
_tokenAmountOut: BigNumberish
Optional overrides: CallOverrides
Returns Promise<[BigNumber] & { tokenAmountIn: BigNumber }>
getAmountIn(address,uint256[],uint256[],uint256):function
- getAmountIn(address,uint256[],uint256[],uint256)(_amm: string, _pairPath: BigNumberish[], _tokenPath: BigNumberish[], _tokenAmountOut: BigNumberish, overrides?: CallOverrides): Promise<[BigNumber] & { tokenAmountIn: BigNumber }>
Parameters
_amm: string
_pairPath: BigNumberish[]
_tokenPath: BigNumberish[]
_tokenAmountOut: BigNumberish
Optional overrides: CallOverrides
Returns Promise<[BigNumber] & { tokenAmountIn: BigNumber }>
getAmountOut:function
- getAmountOut(_amm: string, _pairPath: BigNumberish[], _tokenPath: BigNumberish[], _tokenAmountIn: BigNumberish, overrides?: CallOverrides): Promise<[BigNumber] & { tokenAmountOut: BigNumber }>
Parameters
_amm: string
_pairPath: BigNumberish[]
_tokenPath: BigNumberish[]
_tokenAmountIn: BigNumberish
Optional overrides: CallOverrides
Returns Promise<[BigNumber] & { tokenAmountOut: BigNumber }>
getAmountOut(address,uint256[],uint256[],uint256):function
- getAmountOut(address,uint256[],uint256[],uint256)(_amm: string, _pairPath: BigNumberish[], _tokenPath: BigNumberish[], _tokenAmountIn: BigNumberish, overrides?: CallOverrides): Promise<[BigNumber] & { tokenAmountOut: BigNumber }>
Parameters
_amm: string
_pairPath: BigNumberish[]
_tokenPath: BigNumberish[]
_tokenAmountIn: BigNumberish
Optional overrides: CallOverrides
Returns Promise<[BigNumber] & { tokenAmountOut: BigNumber }>
getRoleAdmin:function
- getRoleAdmin(role: BytesLike, overrides?: CallOverrides): Promise<[string]>
Parameters
role: BytesLike
Optional overrides: CallOverrides
Returns Promise<[string]>
getRoleAdmin(bytes32):function
- getRoleAdmin(bytes32)(role: BytesLike, overrides?: CallOverrides): Promise<[string]>
Parameters
role: BytesLike
Optional overrides: CallOverrides
Returns Promise<[string]>
getRoleMember:function
- getRoleMember(role: BytesLike, index: BigNumberish, overrides?: CallOverrides): Promise<[string]>
Parameters
role: BytesLike
index: BigNumberish
Optional overrides: CallOverrides
Returns Promise<[string]>
getRoleMember(bytes32,uint256):function
- getRoleMember(bytes32,uint256)(role: BytesLike, index: BigNumberish, overrides?: CallOverrides): Promise<[string]>
Parameters
role: BytesLike
index: BigNumberish
Optional overrides: CallOverrides
Returns Promise<[string]>
getRoleMemberCount:function
- getRoleMemberCount(role: BytesLike, overrides?: CallOverrides): Promise<[BigNumber]>
Parameters
role: BytesLike
Optional overrides: CallOverrides
Returns Promise<[BigNumber]>
getRoleMemberCount(bytes32):function
- getRoleMemberCount(bytes32)(role: BytesLike, overrides?: CallOverrides): Promise<[BigNumber]>
Parameters
role: BytesLike
Optional overrides: CallOverrides
Returns Promise<[BigNumber]>
getSpotPrice:function
- getSpotPrice(_amm: string, _pairPath: BigNumberish[], _tokenPath: BigNumberish[], overrides?: CallOverrides): Promise<[BigNumber] & { spotPrice: BigNumber }>
Parameters
_amm: string
_pairPath: BigNumberish[]
_tokenPath: BigNumberish[]
Optional overrides: CallOverrides
Returns Promise<[BigNumber] & { spotPrice: BigNumber }>
getSpotPrice(address,uint256[],uint256[]):function
- getSpotPrice(address,uint256[],uint256[])(_amm: string, _pairPath: BigNumberish[], _tokenPath: BigNumberish[], overrides?: CallOverrides): Promise<[BigNumber] & { spotPrice: BigNumber }>
Parameters
_amm: string
_pairPath: BigNumberish[]
_tokenPath: BigNumberish[]
Optional overrides: CallOverrides
Returns Promise<[BigNumber] & { spotPrice: BigNumber }>
grantRole:function
- grantRole(role: BytesLike, account: string, overrides?: Overrides & { from?: string | Promise<string> }): Promise<ContractTransaction>
Parameters
role: BytesLike
account: string
Optional overrides: Overrides & { from?: string | Promise<string> }
Returns Promise<ContractTransaction>
grantRole(bytes32,address):function
- grantRole(bytes32,address)(role: BytesLike, account: string, overrides?: Overrides & { from?: string | Promise<string> }): Promise<ContractTransaction>
Parameters
role: BytesLike
account: string
Optional overrides: Overrides & { from?: string | Promise<string> }
Returns Promise<ContractTransaction>
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(_registry: string, _admin: string, overrides?: Overrides & { from?: string | Promise<string> }): Promise<ContractTransaction>
Parameters
_registry: string
_admin: string
Optional overrides: Overrides & { from?: string | Promise<string> }
Returns Promise<ContractTransaction>
initialize(address,address):function
- initialize(address,address)(_registry: string, _admin: string, overrides?: Overrides & { from?: string | Promise<string> }): Promise<ContractTransaction>
Parameters
_registry: string
_admin: string
Optional overrides: Overrides & { from?: string | Promise<string> }
Returns Promise<ContractTransaction>
registry:function
- registry(overrides?: CallOverrides): Promise<[string]>
Parameters
Optional overrides: CallOverrides
Returns Promise<[string]>
registry():function
- registry()(overrides?: CallOverrides): Promise<[string]>
Parameters
Optional overrides: CallOverrides
Returns Promise<[string]>
renounceRole:function
- renounceRole(role: BytesLike, account: string, overrides?: Overrides & { from?: string | Promise<string> }): Promise<ContractTransaction>
Parameters
role: BytesLike
account: string
Optional overrides: Overrides & { from?: string | Promise<string> }
Returns Promise<ContractTransaction>
renounceRole(bytes32,address):function
- renounceRole(bytes32,address)(role: BytesLike, account: string, overrides?: Overrides & { from?: string | Promise<string> }): Promise<ContractTransaction>
Parameters
role: BytesLike
account: string
Optional overrides: Overrides & { from?: string | Promise<string> }
Returns Promise<ContractTransaction>
revokeRole:function
- revokeRole(role: BytesLike, account: string, overrides?: Overrides & { from?: string | Promise<string> }): Promise<ContractTransaction>
Parameters
role: BytesLike
account: string
Optional overrides: Overrides & { from?: string | Promise<string> }
Returns Promise<ContractTransaction>
revokeRole(bytes32,address):function
- revokeRole(bytes32,address)(role: BytesLike, account: string, overrides?: Overrides & { from?: string | Promise<string> }): Promise<ContractTransaction>
Parameters
role: BytesLike
account: string
Optional overrides: Overrides & { from?: string | Promise<string> }
Returns Promise<ContractTransaction>
setGovernanceFee:function
- setGovernanceFee(_fee: BigNumberish, overrides?: Overrides & { from?: string | Promise<string> }): Promise<ContractTransaction>
Parameters
_fee: BigNumberish
Optional overrides: Overrides & { from?: string | Promise<string> }
Returns Promise<ContractTransaction>
setGovernanceFee(uint256):function
- setGovernanceFee(uint256)(_fee: BigNumberish, overrides?: Overrides & { from?: string | Promise<string> }): Promise<ContractTransaction>
Parameters
_fee: BigNumberish
Optional overrides: Overrides & { from?: string | Promise<string> }
Returns Promise<ContractTransaction>
setReferral:function
- setReferral(_recipient: string, _fee: BigNumberish, overrides?: Overrides & { from?: string | Promise<string> }): Promise<ContractTransaction>
Parameters
_recipient: string
_fee: BigNumberish
Optional overrides: Overrides & { from?: string | Promise<string> }
Returns Promise<ContractTransaction>
setReferral(address,uint256):function
- setReferral(address,uint256)(_recipient: string, _fee: BigNumberish, overrides?: Overrides & { from?: string | Promise<string> }): Promise<ContractTransaction>
Parameters
_recipient: string
_fee: BigNumberish
Optional overrides: Overrides & { from?: string | Promise<string> }
Returns Promise<ContractTransaction>
setRegistry:function
- setRegistry(_registry: string, overrides?: Overrides & { from?: string | Promise<string> }): Promise<ContractTransaction>
Parameters
_registry: string
Optional overrides: Overrides & { from?: string | Promise<string> }
Returns Promise<ContractTransaction>
setRegistry(address):function
- setRegistry(address)(_registry: string, overrides?: Overrides & { from?: string | Promise<string> }): Promise<ContractTransaction>
Parameters
_registry: string
Optional overrides: Overrides & { from?: string | Promise<string> }
Returns Promise<ContractTransaction>
swapExactAmountIn:function
- swapExactAmountIn(_amm: string, _pairPath: BigNumberish[], _tokenPath: BigNumberish[], _tokenAmountIn: BigNumberish, _minAmountOut: BigNumberish, _to: string, _deadline: BigNumberish, _referralRecipient: string, overrides?: Overrides & { from?: string | Promise<string> }): Promise<ContractTransaction>
Parameters
_amm: string
_pairPath: BigNumberish[]
_tokenPath: BigNumberish[]
_tokenAmountIn: BigNumberish
_minAmountOut: BigNumberish
_to: string
_deadline: BigNumberish
_referralRecipient: string
Optional overrides: Overrides & { from?: string | Promise<string> }
Returns Promise<ContractTransaction>
swapExactAmountIn(address,uint256[],uint256[],uint256,uint256,address,uint256,address):function
- swapExactAmountIn(address,uint256[],uint256[],uint256,uint256,address,uint256,address)(_amm: string, _pairPath: BigNumberish[], _tokenPath: BigNumberish[], _tokenAmountIn: BigNumberish, _minAmountOut: BigNumberish, _to: string, _deadline: BigNumberish, _referralRecipient: string, overrides?: Overrides & { from?: string | Promise<string> }): Promise<ContractTransaction>
Parameters
_amm: string
_pairPath: BigNumberish[]
_tokenPath: BigNumberish[]
_tokenAmountIn: BigNumberish
_minAmountOut: BigNumberish
_to: string
_deadline: BigNumberish
_referralRecipient: string
Optional overrides: Overrides & { from?: string | Promise<string> }
Returns Promise<ContractTransaction>
swapExactAmountOut:function
- swapExactAmountOut(_amm: string, _pairPath: BigNumberish[], _tokenPath: BigNumberish[], _maxAmountIn: BigNumberish, _tokenAmountOut: BigNumberish, _to: string, _deadline: BigNumberish, _referralRecipient: string, overrides?: Overrides & { from?: string | Promise<string> }): Promise<ContractTransaction>
Parameters
_amm: string
_pairPath: BigNumberish[]
_tokenPath: BigNumberish[]
_maxAmountIn: BigNumberish
_tokenAmountOut: BigNumberish
_to: string
_deadline: BigNumberish
_referralRecipient: string
Optional overrides: Overrides & { from?: string | Promise<string> }
Returns Promise<ContractTransaction>
swapExactAmountOut(address,uint256[],uint256[],uint256,uint256,address,uint256,address):function
- swapExactAmountOut(address,uint256[],uint256[],uint256,uint256,address,uint256,address)(_amm: string, _pairPath: BigNumberish[], _tokenPath: BigNumberish[], _maxAmountIn: BigNumberish, _tokenAmountOut: BigNumberish, _to: string, _deadline: BigNumberish, _referralRecipient: string, overrides?: Overrides & { from?: string | Promise<string> }): Promise<ContractTransaction>
Parameters
_amm: string
_pairPath: BigNumberish[]
_tokenPath: BigNumberish[]
_maxAmountIn: BigNumberish
_tokenAmountOut: BigNumberish
_to: string
_deadline: BigNumberish
_referralRecipient: string
Optional overrides: Overrides & { from?: string | Promise<string> }
Returns Promise<ContractTransaction>
updateAllTokenApprovalOf:function
- updateAllTokenApprovalOf(_amm: string, overrides?: Overrides & { from?: string | Promise<string> }): Promise<ContractTransaction>
Parameters
_amm: string
Optional overrides: Overrides & { from?: string | Promise<string> }
Returns Promise<ContractTransaction>
updateAllTokenApprovalOf(address):function
- updateAllTokenApprovalOf(address)(_amm: string, overrides?: Overrides & { from?: string | Promise<string> }): Promise<ContractTransaction>
Parameters
_amm: string
Optional overrides: Overrides & { from?: string | Promise<string> }
Returns Promise<ContractTransaction>
updateFYTApprovalOf:function
- updateFYTApprovalOf(_amm: string, overrides?: Overrides & { from?: string | Promise<string> }): Promise<ContractTransaction>
Parameters
_amm: string
Optional overrides: Overrides & { from?: string | Promise<string> }
Returns Promise<ContractTransaction>
updateFYTApprovalOf(address):function
- updateFYTApprovalOf(address)(_amm: string, overrides?: Overrides & { from?: string | Promise<string> }): Promise<ContractTransaction>
Parameters
_amm: string
Optional overrides: Overrides & { from?: string | Promise<string> }
Returns Promise<ContractTransaction>
interface
interface: AMMRouterV1Interface
populateTransaction
populateTransaction: { DEFAULT_ADMIN_ROLE: any; DEFAULT_ADMIN_ROLE(): any; GOVERNANCE_FEE: any; GOVERNANCE_FEE(): any; REFERRAL_FEE: any; REFERRAL_FEE(address): any; collectGovernanceFee: any; collectGovernanceFee(address,address): any; getAmountIn: any; getAmountIn(address,uint256[],uint256[],uint256): any; getAmountOut: any; getAmountOut(address,uint256[],uint256[],uint256): any; getRoleAdmin: any; getRoleAdmin(bytes32): any; getRoleMember: any; getRoleMember(bytes32,uint256): any; getRoleMemberCount: any; getRoleMemberCount(bytes32): any; getSpotPrice: any; getSpotPrice(address,uint256[],uint256[]): any; grantRole: any; grantRole(bytes32,address): any; hasRole: any; hasRole(bytes32,address): any; initialize: any; initialize(address,address): any; registry: any; registry(): any; renounceRole: any; renounceRole(bytes32,address): any; revokeRole: any; revokeRole(bytes32,address): any; setGovernanceFee: any; setGovernanceFee(uint256): any; setReferral: any; setReferral(address,uint256): any; setRegistry: any; setRegistry(address): any; swapExactAmountIn: any; swapExactAmountIn(address,uint256[],uint256[],uint256,uint256,address,uint256,address): any; swapExactAmountOut: any; swapExactAmountOut(address,uint256[],uint256[],uint256,uint256,address,uint256,address): any; updateAllTokenApprovalOf: any; updateAllTokenApprovalOf(address): any; updateFYTApprovalOf: any; updateFYTApprovalOf(address): any }
Type declaration
DEFAULT_ADMIN_ROLE:function
- DEFAULT_ADMIN_ROLE(overrides?: CallOverrides): Promise<PopulatedTransaction>
Parameters
Optional overrides: CallOverrides
Returns Promise<PopulatedTransaction>
DEFAULT_ADMIN_ROLE():function
- DEFAULT_ADMIN_ROLE()(overrides?: CallOverrides): Promise<PopulatedTransaction>
Parameters
Optional overrides: CallOverrides
Returns Promise<PopulatedTransaction>
GOVERNANCE_FEE:function
- GOVERNANCE_FEE(overrides?: CallOverrides): Promise<PopulatedTransaction>
Parameters
Optional overrides: CallOverrides
Returns Promise<PopulatedTransaction>
GOVERNANCE_FEE():function
- GOVERNANCE_FEE()(overrides?: CallOverrides): Promise<PopulatedTransaction>
Parameters
Optional overrides: CallOverrides
Returns Promise<PopulatedTransaction>
REFERRAL_FEE:function
- REFERRAL_FEE(arg0: string, overrides?: CallOverrides): Promise<PopulatedTransaction>
Parameters
arg0: string
Optional overrides: CallOverrides
Returns Promise<PopulatedTransaction>
REFERRAL_FEE(address):function
- REFERRAL_FEE(address)(arg0: string, overrides?: CallOverrides): Promise<PopulatedTransaction>
Parameters
arg0: string
Optional overrides: CallOverrides
Returns Promise<PopulatedTransaction>
collectGovernanceFee:function
- collectGovernanceFee(_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>
collectGovernanceFee(address,address):function
- collectGovernanceFee(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>
getAmountIn:function
- getAmountIn(_amm: string, _pairPath: BigNumberish[], _tokenPath: BigNumberish[], _tokenAmountOut: BigNumberish, overrides?: CallOverrides): Promise<PopulatedTransaction>
Parameters
_amm: string
_pairPath: BigNumberish[]
_tokenPath: BigNumberish[]
_tokenAmountOut: BigNumberish
Optional overrides: CallOverrides
Returns Promise<PopulatedTransaction>
getAmountIn(address,uint256[],uint256[],uint256):function
- getAmountIn(address,uint256[],uint256[],uint256)(_amm: string, _pairPath: BigNumberish[], _tokenPath: BigNumberish[], _tokenAmountOut: BigNumberish, overrides?: CallOverrides): Promise<PopulatedTransaction>
Parameters
_amm: string
_pairPath: BigNumberish[]
_tokenPath: BigNumberish[]
_tokenAmountOut: BigNumberish
Optional overrides: CallOverrides
Returns Promise<PopulatedTransaction>
getAmountOut:function
- getAmountOut(_amm: string, _pairPath: BigNumberish[], _tokenPath: BigNumberish[], _tokenAmountIn: BigNumberish, overrides?: CallOverrides): Promise<PopulatedTransaction>
Parameters
_amm: string
_pairPath: BigNumberish[]
_tokenPath: BigNumberish[]
_tokenAmountIn: BigNumberish
Optional overrides: CallOverrides
Returns Promise<PopulatedTransaction>
getAmountOut(address,uint256[],uint256[],uint256):function
- getAmountOut(address,uint256[],uint256[],uint256)(_amm: string, _pairPath: BigNumberish[], _tokenPath: BigNumberish[], _tokenAmountIn: BigNumberish, overrides?: CallOverrides): Promise<PopulatedTransaction>
Parameters
_amm: string
_pairPath: BigNumberish[]
_tokenPath: BigNumberish[]
_tokenAmountIn: BigNumberish
Optional overrides: CallOverrides
Returns Promise<PopulatedTransaction>
getRoleAdmin:function
- getRoleAdmin(role: BytesLike, overrides?: CallOverrides): Promise<PopulatedTransaction>
Parameters
role: BytesLike
Optional overrides: CallOverrides
Returns Promise<PopulatedTransaction>
getRoleAdmin(bytes32):function
- getRoleAdmin(bytes32)(role: BytesLike, overrides?: CallOverrides): Promise<PopulatedTransaction>
Parameters
role: BytesLike
Optional overrides: CallOverrides
Returns Promise<PopulatedTransaction>
getRoleMember:function
- getRoleMember(role: BytesLike, index: BigNumberish, overrides?: CallOverrides): Promise<PopulatedTransaction>
Parameters
role: BytesLike
index: BigNumberish
Optional overrides: CallOverrides
Returns Promise<PopulatedTransaction>
getRoleMember(bytes32,uint256):function
- getRoleMember(bytes32,uint256)(role: BytesLike, index: BigNumberish, overrides?: CallOverrides): Promise<PopulatedTransaction>
Parameters
role: BytesLike
index: BigNumberish
Optional overrides: CallOverrides
Returns Promise<PopulatedTransaction>
getRoleMemberCount:function
- getRoleMemberCount(role: BytesLike, overrides?: CallOverrides): Promise<PopulatedTransaction>
Parameters
role: BytesLike
Optional overrides: CallOverrides
Returns Promise<PopulatedTransaction>
getRoleMemberCount(bytes32):function
- getRoleMemberCount(bytes32)(role: BytesLike, overrides?: CallOverrides): Promise<PopulatedTransaction>
Parameters
role: BytesLike
Optional overrides: CallOverrides
Returns Promise<PopulatedTransaction>
getSpotPrice:function
- getSpotPrice(_amm: string, _pairPath: BigNumberish[], _tokenPath: BigNumberish[], overrides?: CallOverrides): Promise<PopulatedTransaction>
Parameters
_amm: string
_pairPath: BigNumberish[]
_tokenPath: BigNumberish[]
Optional overrides: CallOverrides
Returns Promise<PopulatedTransaction>
getSpotPrice(address,uint256[],uint256[]):function
- getSpotPrice(address,uint256[],uint256[])(_amm: string, _pairPath: BigNumberish[], _tokenPath: BigNumberish[], overrides?: CallOverrides): Promise<PopulatedTransaction>
Parameters
_amm: string
_pairPath: BigNumberish[]
_tokenPath: BigNumberish[]
Optional overrides: CallOverrides
Returns Promise<PopulatedTransaction>
grantRole:function
- grantRole(role: BytesLike, account: string, overrides?: Overrides & { from?: string | Promise<string> }): Promise<PopulatedTransaction>
Parameters
role: BytesLike
account: string
Optional overrides: Overrides & { from?: string | Promise<string> }
Returns Promise<PopulatedTransaction>
grantRole(bytes32,address):function
- grantRole(bytes32,address)(role: BytesLike, account: string, overrides?: Overrides & { from?: string | Promise<string> }): Promise<PopulatedTransaction>
Parameters
role: BytesLike
account: string
Optional overrides: Overrides & { from?: string | Promise<string> }
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(_registry: string, _admin: string, overrides?: Overrides & { from?: string | Promise<string> }): Promise<PopulatedTransaction>
Parameters
_registry: string
_admin: string
Optional overrides: Overrides & { from?: string | Promise<string> }
Returns Promise<PopulatedTransaction>
initialize(address,address):function
- initialize(address,address)(_registry: string, _admin: string, overrides?: Overrides & { from?: string | Promise<string> }): Promise<PopulatedTransaction>
Parameters
_registry: string
_admin: string
Optional overrides: Overrides & { from?: string | Promise<string> }
Returns Promise<PopulatedTransaction>
registry:function
- registry(overrides?: CallOverrides): Promise<PopulatedTransaction>
Parameters
Optional overrides: CallOverrides
Returns Promise<PopulatedTransaction>
registry():function
- registry()(overrides?: CallOverrides): Promise<PopulatedTransaction>
Parameters
Optional overrides: CallOverrides
Returns Promise<PopulatedTransaction>
renounceRole:function
- renounceRole(role: BytesLike, account: string, overrides?: Overrides & { from?: string | Promise<string> }): Promise<PopulatedTransaction>
Parameters
role: BytesLike
account: string
Optional overrides: Overrides & { from?: string | Promise<string> }
Returns Promise<PopulatedTransaction>
renounceRole(bytes32,address):function
- renounceRole(bytes32,address)(role: BytesLike, account: string, overrides?: Overrides & { from?: string | Promise<string> }): Promise<PopulatedTransaction>
Parameters
role: BytesLike
account: string
Optional overrides: Overrides & { from?: string | Promise<string> }
Returns Promise<PopulatedTransaction>
revokeRole:function
- revokeRole(role: BytesLike, account: string, overrides?: Overrides & { from?: string | Promise<string> }): Promise<PopulatedTransaction>
Parameters
role: BytesLike
account: string
Optional overrides: Overrides & { from?: string | Promise<string> }
Returns Promise<PopulatedTransaction>
revokeRole(bytes32,address):function
- revokeRole(bytes32,address)(role: BytesLike, account: string, overrides?: Overrides & { from?: string | Promise<string> }): Promise<PopulatedTransaction>
Parameters
role: BytesLike
account: string
Optional overrides: Overrides & { from?: string | Promise<string> }
Returns Promise<PopulatedTransaction>
setGovernanceFee:function
- setGovernanceFee(_fee: BigNumberish, overrides?: Overrides & { from?: string | Promise<string> }): Promise<PopulatedTransaction>
Parameters
_fee: BigNumberish
Optional overrides: Overrides & { from?: string | Promise<string> }
Returns Promise<PopulatedTransaction>
setGovernanceFee(uint256):function
- setGovernanceFee(uint256)(_fee: BigNumberish, overrides?: Overrides & { from?: string | Promise<string> }): Promise<PopulatedTransaction>
Parameters
_fee: BigNumberish
Optional overrides: Overrides & { from?: string | Promise<string> }
Returns Promise<PopulatedTransaction>
setReferral:function
- setReferral(_recipient: string, _fee: BigNumberish, overrides?: Overrides & { from?: string | Promise<string> }): Promise<PopulatedTransaction>
Parameters
_recipient: string
_fee: BigNumberish
Optional overrides: Overrides & { from?: string | Promise<string> }
Returns Promise<PopulatedTransaction>
setReferral(address,uint256):function
- setReferral(address,uint256)(_recipient: string, _fee: BigNumberish, overrides?: Overrides & { from?: string | Promise<string> }): Promise<PopulatedTransaction>
Parameters
_recipient: string
_fee: BigNumberish
Optional overrides: Overrides & { from?: string | Promise<string> }
Returns Promise<PopulatedTransaction>
setRegistry:function
- setRegistry(_registry: string, overrides?: Overrides & { from?: string | Promise<string> }): Promise<PopulatedTransaction>
Parameters
_registry: string
Optional overrides: Overrides & { from?: string | Promise<string> }
Returns Promise<PopulatedTransaction>
setRegistry(address):function
- setRegistry(address)(_registry: string, overrides?: Overrides & { from?: string | Promise<string> }): Promise<PopulatedTransaction>
Parameters
_registry: string
Optional overrides: Overrides & { from?: string | Promise<string> }
Returns Promise<PopulatedTransaction>
swapExactAmountIn:function
- swapExactAmountIn(_amm: string, _pairPath: BigNumberish[], _tokenPath: BigNumberish[], _tokenAmountIn: BigNumberish, _minAmountOut: BigNumberish, _to: string, _deadline: BigNumberish, _referralRecipient: string, overrides?: Overrides & { from?: string | Promise<string> }): Promise<PopulatedTransaction>
Parameters
_amm: string
_pairPath: BigNumberish[]
_tokenPath: BigNumberish[]
_tokenAmountIn: BigNumberish
_minAmountOut: BigNumberish
_to: string
_deadline: BigNumberish
_referralRecipient: string
Optional overrides: Overrides & { from?: string | Promise<string> }
Returns Promise<PopulatedTransaction>
swapExactAmountIn(address,uint256[],uint256[],uint256,uint256,address,uint256,address):function
- swapExactAmountIn(address,uint256[],uint256[],uint256,uint256,address,uint256,address)(_amm: string, _pairPath: BigNumberish[], _tokenPath: BigNumberish[], _tokenAmountIn: BigNumberish, _minAmountOut: BigNumberish, _to: string, _deadline: BigNumberish, _referralRecipient: string, overrides?: Overrides & { from?: string | Promise<string> }): Promise<PopulatedTransaction>
Parameters
_amm: string
_pairPath: BigNumberish[]
_tokenPath: BigNumberish[]
_tokenAmountIn: BigNumberish
_minAmountOut: BigNumberish
_to: string
_deadline: BigNumberish
_referralRecipient: string
Optional overrides: Overrides & { from?: string | Promise<string> }
Returns Promise<PopulatedTransaction>
swapExactAmountOut:function
- swapExactAmountOut(_amm: string, _pairPath: BigNumberish[], _tokenPath: BigNumberish[], _maxAmountIn: BigNumberish, _tokenAmountOut: BigNumberish, _to: string, _deadline: BigNumberish, _referralRecipient: string, overrides?: Overrides & { from?: string | Promise<string> }): Promise<PopulatedTransaction>
Parameters
_amm: string
_pairPath: BigNumberish[]
_tokenPath: BigNumberish[]
_maxAmountIn: BigNumberish
_tokenAmountOut: BigNumberish
_to: string
_deadline: BigNumberish
_referralRecipient: string
Optional overrides: Overrides & { from?: string | Promise<string> }
Returns Promise<PopulatedTransaction>
swapExactAmountOut(address,uint256[],uint256[],uint256,uint256,address,uint256,address):function
- swapExactAmountOut(address,uint256[],uint256[],uint256,uint256,address,uint256,address)(_amm: string, _pairPath: BigNumberish[], _tokenPath: BigNumberish[], _maxAmountIn: BigNumberish, _tokenAmountOut: BigNumberish, _to: string, _deadline: BigNumberish, _referralRecipient: string, overrides?: Overrides & { from?: string | Promise<string> }): Promise<PopulatedTransaction>
Parameters
_amm: string
_pairPath: BigNumberish[]
_tokenPath: BigNumberish[]
_maxAmountIn: BigNumberish
_tokenAmountOut: BigNumberish
_to: string
_deadline: BigNumberish
_referralRecipient: string
Optional overrides: Overrides & { from?: string | Promise<string> }
Returns Promise<PopulatedTransaction>
updateAllTokenApprovalOf:function
- updateAllTokenApprovalOf(_amm: string, overrides?: Overrides & { from?: string | Promise<string> }): Promise<PopulatedTransaction>
Parameters
_amm: string
Optional overrides: Overrides & { from?: string | Promise<string> }
Returns Promise<PopulatedTransaction>
updateAllTokenApprovalOf(address):function
- updateAllTokenApprovalOf(address)(_amm: string, overrides?: Overrides & { from?: string | Promise<string> }): Promise<PopulatedTransaction>
Parameters
_amm: string
Optional overrides: Overrides & { from?: string | Promise<string> }
Returns Promise<PopulatedTransaction>
updateFYTApprovalOf:function
- updateFYTApprovalOf(_amm: string, overrides?: Overrides & { from?: string | Promise<string> }): Promise<PopulatedTransaction>
Parameters
_amm: string
Optional overrides: Overrides & { from?: string | Promise<string> }
Returns Promise<PopulatedTransaction>
updateFYTApprovalOf(address):function
- updateFYTApprovalOf(address)(_amm: string, overrides?: Overrides & { from?: string | Promise<string> }): Promise<PopulatedTransaction>
Parameters
_amm: string
Optional overrides: Overrides & { from?: string | Promise<string> }
Returns Promise<PopulatedTransaction>
Readonly provider
provider: Provider
Readonly resolvedAddress
resolvedAddress: Promise<string>
Readonly signer
signer: Signer