Securo Fixes added

This commit is contained in:
Aditya
2022-08-03 23:11:16 -07:00
parent 1580b76bfd
commit 9c6a628f36
2 changed files with 26 additions and 26 deletions

View File

@@ -35,7 +35,7 @@ const getApy = async () => {
calls: vaults.map((i) => ({ target: i })),
chain,
})
).output.map(({ output }) => output / 1e18);
).output.map(({ output }) => ((1 + output / 1e18 / 52) ** 52 - 1) * 100);
return balances;
})
);
@@ -57,7 +57,7 @@ const getApy = async () => {
return [
{
pool: config.bsc.vaults.LCIBsc,
chain: 'bsc',
chain: 'Binance',
project: 'securo-finance',
symbol: `USDT`,
tvlUsd: Number(tvls[0]),
@@ -65,7 +65,7 @@ const getApy = async () => {
},
{
pool: config.aurora.vaults.BNIAurora,
chain: 'aurora',
chain: 'Aurora',
project: 'securo-finance',
symbol: `USDT`,
tvlUsd: Number(tvls[1]),
@@ -73,7 +73,7 @@ const getApy = async () => {
},
{
pool: config.polygon.vaults.BNIPolygon,
chain: 'polygon',
chain: 'Polygon',
project: 'securo-finance',
symbol: `USDT`,
tvlUsd: Number(tvls[2]),
@@ -84,16 +84,16 @@ const getApy = async () => {
chain: 'Avalanche',
project: 'securo-finance',
symbol: `USDT`,
tvlUsd: Number(tvls[3]),
apy: Number(apys[3]),
tvlUsd: Number(tvls[3][0]),
apy: Number(apys[3][0]),
},
{
pool: config.avax.vaults.BNIAvalanche,
chain: 'Avalanche',
project: 'securo-finance',
symbol: `USDT`,
tvlUsd: Number(tvls[4]),
apy: Number(apys[4]),
tvlUsd: Number(tvls[3][1]),
apy: Number(apys[3][1]),
},
];
};

View File

@@ -1,18 +1,18 @@
{
"compilerOptions": {
"module": "commonjs",
"target": "ES5",
"strict": false,
"types": ["node", "jest"],
"resolveJsonModule": true,
"moduleResolution": "node",
"noUnusedLocals": true,
"noUnusedParameters": true,
"noImplicitReturns": true,
"noFallthroughCasesInSwitch": true,
"esModuleInterop": true,
"allowJs": true,
"lib": ["ES2020.Promise", "ES6"]
},
"include": ["./src/**/*"]
}
{
"compilerOptions": {
"module": "commonjs",
"target": "ES5",
"strict": false,
"types": ["node", "jest"],
"resolveJsonModule": true,
"moduleResolution": "node",
"noUnusedLocals": true,
"noUnusedParameters": true,
"noImplicitReturns": true,
"noFallthroughCasesInSwitch": true,
"esModuleInterop": true,
"allowJs": true,
"lib": ["ES2020.Promise", "ES6"]
},
"include": ["./src/**/*"]
}