IQuoter
Table of contents
Constructors
Properties
Methods
Constructors
constructor
• new IQuoter(_origin
): IQuoter
Parameters
Name | Type |
---|---|
_origin | Address |
Returns
Defined in
assembly/interfaces/IQuoter.ts:10
Properties
_origin
• _origin: Address
Defined in
assembly/interfaces/IQuoter.ts:10
Methods
factory
▸ factory(): IFactory
Returns
Defined in
assembly/interfaces/IQuoter.ts:43
findBestPathFromAmountIn
▸ findBestPathFromAmountIn(route
, amountIn
, checkLegacy
): Quote
Parameters
Name | Type |
---|---|
route | Address [] |
amountIn | u256 |
checkLegacy | bool |
Returns
Quote
Defined in
assembly/interfaces/IQuoter.ts:17
findBestPathFromAmountOut
▸ findBestPathFromAmountOut(route
, amountOut
, checkLegacy
): Quote
Parameters
Name | Type |
---|---|
route | Address [] |
amountOut | u256 |
checkLegacy | bool |
Returns
Quote
Defined in
assembly/interfaces/IQuoter.ts:30
init
▸ init(factory
, v0Factory
, legacyFactory
): void
Parameters
Name | Type |
---|---|
factory | Address |
v0Factory | Address |
legacyFactory | Address |
Returns
void
Defined in
assembly/interfaces/IQuoter.ts:12
legacyFactory
▸ legacyFactory(): IV0Factory
Returns
Defined in
assembly/interfaces/IQuoter.ts:53
v0Factory
▸ v0Factory(): IV0Factory