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