mirror of
https://github.com/uniwhale-io/DefiLlama-yield-server.git
synced 2026-01-12 08:53:45 +08:00
add mintedCoin field
This commit is contained in:
5
migrations/1666975802795_mintToken.js
Normal file
5
migrations/1666975802795_mintToken.js
Normal file
@@ -0,0 +1,5 @@
|
||||
exports.up = (pgm) => {
|
||||
pgm.addColumns('config', {
|
||||
mintedCoin: 'text',
|
||||
});
|
||||
};
|
||||
@@ -75,6 +75,7 @@ const main = async () => {
|
||||
totalSupplyUsd: (Number(troveEthTvl) / 1e18) * Number(troveType.price),
|
||||
totalBorrowUsd: totalSupplyUsd,
|
||||
ltv: 1 / (mcr / 1e18),
|
||||
mintedCoin: 'LUSD',
|
||||
},
|
||||
];
|
||||
};
|
||||
|
||||
@@ -29,6 +29,7 @@ describe(`Running ${process.env.npm_config_adapter} Test`, () => {
|
||||
'ltv',
|
||||
'borrowable',
|
||||
'debtCeilingUsd',
|
||||
'mintedCoin',
|
||||
];
|
||||
const fields = [...Object.keys(baseFields), ...optionalFields, 'tvlUsd'];
|
||||
apy.forEach((pool) => {
|
||||
|
||||
@@ -102,6 +102,7 @@ const buildInsertConfigQuery = (payload) => {
|
||||
'url',
|
||||
{ name: 'ltv', def: null },
|
||||
{ name: 'borrowable', def: null },
|
||||
{ name: 'mintedCoin', def: null },
|
||||
];
|
||||
const cs = new pgp.helpers.ColumnSet(columns, { table: tableName });
|
||||
const query =
|
||||
|
||||
@@ -249,6 +249,7 @@ const getYieldLendBorrow = async () => {
|
||||
"debtCeilingUsd",
|
||||
"ltv",
|
||||
"borrowable",
|
||||
"mintedCoin",
|
||||
"rewardTokens",
|
||||
"underlyingTokens"
|
||||
FROM
|
||||
|
||||
Reference in New Issue
Block a user