UNPKG

brahma-trade-widget

Version:

A React component for trade automation within the Brahma ecosystem.

40 lines (32 loc) 1.26 kB
import { BASE_CHAIN_ID } from "@/constants" import { PartialChainConfig } from "./types" export const DEV_URL = "https://dev.console.fi/v1/vendor" // export const STAGING_URL = "https://gtw.stg.brahma.fi/v1/"; export const PROD_URL = "https://api.console.fi/v1/vendor" const MORPHO_EXECUTOR_ID_DEV: PartialChainConfig<string> = { [BASE_CHAIN_ID]: "1fcc089a-9faf-40e9-9ec8-3e34d2f4614f", } const MORPHO_EXECUTOR_ID_STG: PartialChainConfig<string> = { [BASE_CHAIN_ID]: "5c0ce84d-6fea-46b1-8f27-b67c6212f5cf", } const MORPHO_EXECUTOR_ID_PROD: PartialChainConfig<string> = { [BASE_CHAIN_ID]: "8fa8bacb-7be0-4232-8dce-d080e1e56540", } export const MORPHO_EXECUTOR_ID: Record< "PROD" | "STAGING" | "DEV", PartialChainConfig<string> > = { PROD: MORPHO_EXECUTOR_ID_PROD, STAGING: MORPHO_EXECUTOR_ID_STG, DEV: MORPHO_EXECUTOR_ID_DEV, } export const MORPHO_YIELD_AUTOMATION_ACTIVE_STATE = 2 export const LOGO_FALLBACK_URL = "https://brahma-static.s3.us-east-2.amazonaws.com/Protocols/AssetGeneric-1.svg" export const frequencyOptions = [ // { label: "Minute", value: "60" }, { label: "Daily", value: "86400" }, { label: "Weekly", value: "604800" }, { label: "Bi-weekly", value: "1209600" }, { label: "Monthly", value: "2419200" }, ]