Skip to content

Commit

Permalink
arrakis add underlying, ref-finance cast dtype
Browse files Browse the repository at this point in the history
  • Loading branch information
slasher125 committed Oct 10, 2022
1 parent 5123bf1 commit 84cc4f7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions src/adaptors/arrakis-finance/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,7 @@ const getApy = async () => {
tvlUsd: tvl || 0,
apy: Number(vault.apr.averageApr),
url: `https://beta.arrakis.finance/vaults/${CHAIN_IDS[chain]}/${vault.id}`,
underlyingTokens: [vault.token0.address, vault.token1.address],
};
});
return chainAprs;
Expand Down
4 changes: 2 additions & 2 deletions src/adaptors/ref-finance/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ async function commonCall(url, method, args = {}) {
params: args,
});
if (result.data.error) {
throw new Error(`${result.data.error.message}: ${result.data.error.data}`)
throw new Error(`${result.data.error.message}: ${result.data.error.data}`);
}
return result.data;
}
Expand Down Expand Up @@ -215,7 +215,7 @@ async function getV2FarmData() {
symbol: token_symbols?.join('-'),
tvlUsd: seedTvl,
apyReward: totalApy * 100,
apyBase: poolApy,
apyBase: Number(poolApy),
underlyingTokens: token_account_ids,
rewardTokens: rewardsTokens,
};
Expand Down

0 comments on commit 84cc4f7

Please sign in to comment.