Preparing search index...
The search index is not available
rubic-sdk
rubic-sdk
OneInchProvider
Class OneInchProvider
Hierarchy
AggregatorOnChainProvider
OneInchProvider
Index
Constructors
constructor
Properties
trade
Type
Methods
calculate
Constructors
constructor
new
One
Inch
Provider
(
)
:
OneInchProvider
Returns
OneInchProvider
Properties
Readonly
trade
Type
trade
Type
:
"ONE_INCH"
= ON_CHAIN_TRADE_TYPE.ONE_INCH
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
One
Inch
Provider
constructor
trade
Type
calculate
Generated using
TypeDoc