Funding
options you want to show in config
FKModule Interface
This is the main interface ofFKModule
type which you have to provide while defining config
.
Property | Type | Description |
---|---|---|
exchange | ExchangeModule (optional) | The exchange module configuration. If undefined, the exchange module will be disabled. |
onRamp | OnRampModule (optional) | The on-ramp module configuration. If undefined, the on-ramp module will be disabled. If enabled, the onRampConfig must be provided. |
bridgeAndSwap | FKBridgeAndSwapModule | The bridge and swap module configuration. If undefined, the bridge and swap module will be disabled. |
ExchangeModule
By settingenabled
true or false, you can enable or disable option to Fund from centralised exchanges.
Property | Type | Description |
---|---|---|
enabled | boolean (optional) | Whether the exchange module is enabled. Default is true. |
OnRampModule
You can setenabled
to true which enables option to fund from Bank Account or Card.
Property | Type | Description |
---|---|---|
enabled | boolean | undefined | Whether the on-ramp module is enabled. Default is true. |
onRampConfig | OnRampBase | Configuration for the on-ramp module. |
Property | Type | Description |
---|---|---|
customerId | string | To uniquely identify the user. |
exchangeScreenTitle | string | undefined | Custom copy to show in widget. |
FKBridgeAndSwapModule
Info: RouteType can be Value, Fee or Time. It helps to optimise route for bridging and swapping.
Property | Type | Description |
---|---|---|
enabled | boolean (optional) | Whether the bridge and swap module is enabled. Default is true. |
fetchOnlyDestinationBalance | boolean (optional) | Whether to fetch only the destination chain’s balance. Default is false. |
routeType | ”Fee” | “Time” | “Value” | The type of route to be used. Default is “Value”. |
connectors | SourceConnectorName | SourceConnectorName[] | undefined | Specifies source connector of the client. |