Common DeFi Projects Helper Class

The intents.js SDK includes a helper class for quick access to known DeFi project addresses. This lets you easily reference addresses for various DeFi services, such as staking platforms and liquidity pools (without manual input).

Here’s a list of supported project addresses:

export class Projects {
    static Staking = {
      BeaconChain: "AddressPlaceholder",
      Lido: "AddressPlaceholder",
      RocketPool: "AddressPlaceholder",
      Mantle: "AddressPlaceholder",
      StakeWise: "AddressPlaceholder",
      Ankr: "AddressPlaceholder",
      Swell: "AddressPlaceholder",
      Liquid: "AddressPlaceholder",
      Binance: "AddressPlaceholder",
      Stader: "AddressPlaceholder",
      Origin: "AddressPlaceholder",
      Frax: "AddressPlaceholder",
      Coinbase: "AddressPlaceholder"
    };
}
  

To use a project address in your intent, reference the helper class like this:

to: {
    type: "STAKE",
    address: Projects.Staking.Lido
},

This helper class streamlines the integration with popular DeFi platforms, letting you efficiently reference known addresses for various operations.

Last updated