Preparing search index...
The search index is not available
rubic-sdk
rubic-sdk
SymbiosisOnChainProvider
Class SymbiosisOnChainProvider
Hierarchy
AggregatorOnChainProvider
SymbiosisOnChainProvider
Index
Constructors
constructor
Properties
trade
Type
Methods
calculate
Constructors
constructor
new
Symbiosis
On
Chain
Provider
(
)
:
SymbiosisOnChainProvider
Returns
SymbiosisOnChainProvider
Properties
Readonly
trade
Type
trade
Type
:
"SYMBIOSIS_SWAP"
= ON_CHAIN_TRADE_TYPE.SYMBIOSIS_SWAP
Methods
calculate
calculate
(
from
:
PriceTokenAmount
<
BlockchainName
>
, toToken
:
PriceToken
<
BlockchainName
>
, options
:
Omit
<
OnChainCalculationOptions
,
"slippageTolerance"
|
"gasCalculation"
|
"providerAddress"
|
"useProxy"
|
"withDeflation"
>
&
Required
<
Pick
<
OnChainCalculationOptions
,
"slippageTolerance"
|
"gasCalculation"
|
"providerAddress"
|
"useProxy"
|
"withDeflation"
>
>
)
:
Promise
<
OnChainTrade
|
OnChainTradeError
>
Parameters
from:
PriceTokenAmount
<
BlockchainName
>
toToken:
PriceToken
<
BlockchainName
>
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
Symbiosis
On
Chain
Provider
constructor
trade
Type
calculate
Generated using
TypeDoc