Skip to content

Commit

Permalink
feat: remove apyRewardBorrow and apyReward in ePMX
Browse files Browse the repository at this point in the history
  • Loading branch information
TbIKoBKa committed Dec 5, 2023
1 parent a4b9766 commit e507052
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions src/adaptors/primex-finance/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,11 +43,13 @@ const formatPool = async (bucket, config, EPMXPrice) => {
const apyBaseBorrowCalculated = (Math.pow(1 + (bar / 10 ** 27) / SECONDS_PER_YEAR, SECONDS_PER_YEAR) - 1) * 100
const apyBaseBorrow = isMiningPhase ? 0 : apyBaseBorrowCalculated

const apyRewardCalculated = (rewardPerTokenLender * 10 ** asset.decimals / 10 ** 18 * SECONDS_PER_YEAR * EPMXPrice / assetPrice.price / 10 ** 18) * 100;
const apyReward = isMiningPhase ? apyRewardBySymbol[symbol] + APY_REWARD_BONUS : apyRewardCalculated
// const apyRewardCalculated = (rewardPerTokenLender * 10 ** asset.decimals / 10 ** 18 * SECONDS_PER_YEAR * EPMXPrice / assetPrice.price / 10 ** 18) * 100;
// const apyReward = isMiningPhase ? apyRewardBySymbol[symbol] + APY_REWARD_BONUS : apyRewardCalculated
const apyReward = isMiningPhase ? APY_REWARD_BONUS : 0

const apyRewardBorrowCalculated = (rewardPerTokenTrader * 10 ** asset.decimals / 10 ** 18 * SECONDS_PER_YEAR * EPMXPrice / assetPrice.price / 10 ** 18) * 100;
const apyRewardBorrow = isMiningPhase ? 0 : apyRewardBorrowCalculated
// const apyRewardBorrowCalculated = (rewardPerTokenTrader * 10 ** asset.decimals / 10 ** 18 * SECONDS_PER_YEAR * EPMXPrice / assetPrice.price / 10 ** 18) * 100;
// const apyRewardBorrow = isMiningPhase ? 0 : apyRewardBorrowCalculated
const apyRewardBorrow = 0

return {
pool: `${bucketAddress}-${chain}`.toLowerCase(),
Expand Down

0 comments on commit e507052

Please sign in to comment.