Adding assets

Asset descriptions are made in JSON files located in the /data/assets/{chainId}/{protocolName} directory.

Each file is composed of a JSON array of objects with the following overall structure:

ParameterTypeDetails

id

string

UUIDv4

active

boolean

color

string

decimals

number

name

string

chainId

number

symbol

string

type

string

Must correspond to type of asset strategy

visible

boolean

allowSlot

number

Value returned from the findSlots function

balanceSlot

number

Value returned from the findSlots function

{
    "id": string,
    "active": boolean,
    "address": string,
    "color": string,
    "decimals": number,
    "name": string,
    "chainId": number,
    "symbol": string,
    "type": string,
    "visible": boolean,
    "allowSlot": number,
    "balanceSlot": number
}

Last updated