Preparing search index...
The search index is not available
rubic-sdk
rubic-sdk
SquidRouterOnChainProvider
Class SquidRouterOnChainProvider
Hierarchy
AggregatorOnChainProvider
SquidRouterOnChainProvider
Index
Constructors
constructor
Properties
trade
Type
Methods
calculate
Constructors
constructor
new
Squid
Router
On
Chain
Provider
(
)
:
SquidRouterOnChainProvider
Returns
SquidRouterOnChainProvider
Properties
Readonly
trade
Type
trade
Type
:
"SQUIDROUTER"
= ON_CHAIN_TRADE_TYPE.SQUIDROUTER
Methods
calculate
calculate
(
from
:
PriceTokenAmount
<
EvmBlockchainName
>
, toToken
:
PriceToken
<
EvmBlockchainName
>
, options
:
Omit
<
OnChainCalculationOptions
,
"slippageTolerance"
|
"gasCalculation"
|
"providerAddress"
|
"useProxy"
|
"withDeflation"
>
&
Required
<
Pick
<
OnChainCalculationOptions
,
"slippageTolerance"
|
"gasCalculation"
|
"providerAddress"
|
"useProxy"
|
"withDeflation"
>
>
)
:
Promise
<
OnChainTrade
|
OnChainTradeError
>
Parameters
from:
PriceTokenAmount
<
EvmBlockchainName
>
toToken:
PriceToken
<
EvmBlockchainName
>
options:
Omit
<
OnChainCalculationOptions
,
"slippageTolerance"
|
"gasCalculation"
|
"providerAddress"
|
"useProxy"
|
"withDeflation"
>
&
Required
<
Pick
<
OnChainCalculationOptions
,
"slippageTolerance"
|
"gasCalculation"
|
"providerAddress"
|
"useProxy"
|
"withDeflation"
>
>
Returns
Promise
<
OnChainTrade
|
OnChainTradeError
>
Settings
Member Visibility
Inherited
External
Theme
OS
Light
Dark
Modules
rubic-
sdk
Squid
Router
On
Chain
Provider
constructor
trade
Type
calculate
Generated using
TypeDoc