Module

The module allows you to display different funding options in the widget. Currently, there are three options available: Fund from Exchange, Fund from Card or Bank Account, and Fund from EOA.

You can configure which Funding options you want to show in config

FKModule Interface

This is the main interface of FKModule type which you have to provide while defining config.

ExchangeModule

By setting enabled true or false, you can enable or disable option to Fund from centralised exchanges.

OnRampModule

You can set enabled to true which enables option to fund from Bank Account or Card.

OnRampConfig

FKBridgeAndSwapModule

RouteType can be Value, Fee or Time. It helps to optimise route for bridging and swapping.

Example

const config: FKConfig = {
    appName: "Aarc",
    module: {
      exchange: {
        enabled: false,
      },
      onRamp: {
        enabled: true,
        onRampConfig: {
          customerId: 123
        },
      },
      bridgeAndSwap: {
        enabled: true,
        fetchOnlyDestinationBalance: false,
        routeType: "Value",
      },
    },
    // remaining config...
  };

Last updated