-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
223 feat dynamic inclusion of strategies (#262)
* Update strategy schema, include tokens schema * Include migrations * Load active strategies and tokens via db * Update eth prices seeder * remove special strategy and token checks for rewards routes and monitors * Temporarily consolidate utils in seeder package * Include strategy whitelist raw logs and a whitelisted strategy seeder * Handle token price without cmcId * Lower case underlying token address * Aux route to display all strategies and tokens * fix: use reward token decimals in calc instead of assuming 18 decimals * Fix strategy seeder * Remove beacon address from live strategy tvl --------- Co-authored-by: Gowtham S <[email protected]>
- Loading branch information
1 parent
d433d29
commit 864ac7c
Showing
26 changed files
with
1,000 additions
and
1,298 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,10 @@ | ||
import express from 'express' | ||
import { getCachedPrices, getLastSyncBlocks } from './auxiliaryController' | ||
import { getCachedPrices, getLastSyncBlocks, getStrategies } from './auxiliaryController' | ||
|
||
const router = express.Router() | ||
|
||
router.get('/prices', getCachedPrices) | ||
router.get('/sync-status', getLastSyncBlocks) | ||
router.get('/strategies', getStrategies) | ||
|
||
export default router |
Oops, something went wrong.