diff --git a/.github/markets/pr_template.md b/.github/markets/pr_template.md index 8db1a39..7312f35 100644 --- a/.github/markets/pr_template.md +++ b/.github/markets/pr_template.md @@ -30,6 +30,7 @@ Each json file under the [configs](../../configs) folder correspond to their res |`quick_select_tokens` |`QuickSelectToken[]` |true |List of quick select tokens for deposit and withdrawal forms. | |`disabled_transfer_banner_config` |`DisabledTransferBannerConfig` |false |Config parameters for displaying banner to inform users that transfers for the relevant tokens are disabled | |`trading_leagues` |`TradingLeague[]` |false |Map of trading league config with their path. | +|`nitron_native_aprs` |`NitronNativeAPR[]` |true |List of Nitron native APR APIs. | ## Maintenance Data Structure |Field |Type |Required |Description |Notes | @@ -147,3 +148,10 @@ Each json file under the [configs](../../configs) folder correspond to their res |`trading_league` |`string` |true |The trading league name | |`trading_league_title` |`string` |true |The trading league title | +## NitronNativeAPR Data Structure +|Field |Type |Required |Description |Notes | +|---|---|---|---|---| +|`protocol` |`string` |true |The protocol name | +|`api_url` |`string` |true |The API URL for fetch APR info | +|`reward_denom` |`object` |true |The key value object for mapping symbol and denom | + diff --git a/README.md b/README.md index 5913721..fcf15ba 100644 --- a/README.md +++ b/README.md @@ -15,6 +15,7 @@ Currently, each JSON file contain the following data on its corresponding networ - map of IBC channels for external IBC chains (such as Osmosis, Noble, etc.) - information about IBC tokens that are not added on chain or require packet forwarding - default quick select tokens in deposit/withdrawal forms +- Nitron Native APR API config for get APR show on Nitron markets Additionally, the JSON file for mainnet contains the following data to support ongoing campaigns/promotions: - demex points config diff --git a/config.schema.json b/config.schema.json index 2b6c97d..711d29a 100644 --- a/config.schema.json +++ b/config.schema.json @@ -632,6 +632,32 @@ "items": { "$ref": "#/$defs/trading_league" } + }, + "nitron_native_apr": { + "type": "object", + "description": "API for query native APR on Nitron", + "required": ["label_denom", "target_denom"], + "properties": { + "protocol": { + "type": "string", + "description": "Protocol name" + }, + "api_url": { + "type": "string", + "description": "API URL" + }, + "reward_denom": { + "type": "string", + "description": "Reward denom map" + } + } + }, + "nitron_native_aprs": { + "type": "array", + "description": "List of APIs for native APR on Nitron", + "items": { + "$ref": "#/$defs/nitron_native_apr" + } } } } \ No newline at end of file diff --git a/configs/mainnet.json b/configs/mainnet.json index e4def39..d7841e4 100644 --- a/configs/mainnet.json +++ b/configs/mainnet.json @@ -504,5 +504,44 @@ "trading_league": "Base", "trading_league_title": "Base Trading League" } - } + }, + "nitron_native_aprs": [ + { + "protocol": "Drop", + "api_url": "https://app.drop.money/api/apy", + "reward_denom": { + "dATOM": "ibc/EF37C83E78BD1F9B2401B3B3E5C00E0DBA71A648E2A8C3018861786F7A5F0105" + } + }, + { + "protocol": "Stride", + "api_url": "https://edge.stride.zone/api/stake-stats", + "reward_denom": { + "ATOM": "ibc/A4DB47A9D3CF9A068D454513891B526702455D3EF08FB9EB558C561F9DC2B701", + "OSMO": "ibc/ED07A3391A112B175915CD8FAF43A2DA8E4790EDE12566649D0C2F97716B8518", + "STARS": "ibc/C688EBE80ECC20865331A18D8D19654754F6B189977715FED00FBA2BE41F144F", + "LUNA": "ibc/2B58B8C147E8718EECCB3713271DF46DEE8A3A00A27242628604E31C2F370EF5", + "EVMOS": "ibc/35E771B8682D828173F4B795F6C307780F96DC64D6F914FAE4CC9B4666F66364", + "INJ": "ibc/CAF0C63018C2E96F320D448C1F0A1951D77C4F385D802B700CDF7DD2D5B66FD0", + "DYDX": "ibc/9DC57FF60E125F9B976EB0DF4F2122C580AD1DB8E27BA71E6D2C1AA56A5FD312", + "TIA": "ibc/2F6C349F0EB135C5FA99301758F35B87DB88403D690E5E314AB080401FEE4066E5", + "DYM": "ibc/2F50345B6B85884DC41E831047EEE01805B289171DBF105AB3EA42BCC72B3926CC", + "SAGA": "ibc/2F50345B6B85884DC41E831047EEE01805B289171DBF105AB3EA42BCC72B3926CC" + } + }, + { + "protocol": "Lido", + "api_url": "https://eth-api.lido.fi/v1/protocol/steth/apr/sma", + "reward_denom": { + "wstETH": "brdg/6901fa9eb45ef8351c0ab9e29fa45da3bb0538bfbc5a84ad1009e3544346d2c8" + } + }, + { + "protocol": "MilkyWay", + "api_url": "https://apis.milkyway.zone/v2/protocols/osmosis.milkTIA", + "reward_denom": { + "milkTIA": "ibc/16065EE5282C5217685C8F084FC44864C25C706AC37356B0D62811D50B96920F" + } + } + ] }