Preparing search index...
The search index is not available
rubic-sdk
rubic-sdk
OpenOceanProvider
Class OpenOceanProvider
Hierarchy
AggregatorOnChainProvider
OpenOceanProvider
Index
Constructors
constructor
Properties
trade
Type
native
Address
Methods
calculate
Constructors
constructor
new
Open
Ocean
Provider
(
)
:
OpenOceanProvider
Returns
OpenOceanProvider
Properties
Readonly
trade
Type
trade
Type
:
"OPEN_OCEAN"
= ON_CHAIN_TRADE_TYPE.OPEN_OCEAN
Static
Readonly
native
Address
native
Address
:
"0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE"
= '0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE'
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
Open
Ocean
Provider
constructor
trade
Type
native
Address
calculate
Generated using
TypeDoc