Skip to content

Commit

Permalink
Add config for nitron native apr
Browse files Browse the repository at this point in the history
  • Loading branch information
thanhpn committed Jan 23, 2025
1 parent e6e8b1d commit dd0a6c2
Show file tree
Hide file tree
Showing 4 changed files with 75 additions and 1 deletion.
8 changes: 8 additions & 0 deletions .github/markets/pr_template.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 |
Expand Down Expand Up @@ -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 |

1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
26 changes: 26 additions & 0 deletions config.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
}
}
}
41 changes: 40 additions & 1 deletion configs/mainnet.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
}
]
}

0 comments on commit dd0a6c2

Please sign in to comment.