Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: reactor fusion reward token update #59

Merged
merged 1 commit into from
Jul 24, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/vaults/apys/implementations/reactorfusion-fold.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ const getApy = async (underlying, cTokenAddr, strategyAddr, reduction) => {
methods: strategyMethods,
} = lodestarStrategy

const RF = '0x5f7CBcb391d33988DAD74D6Fd683AadDA1123E4D'
const ZK = '0x5A7d6b2F92C77FAD6CCaBd7EE0624E64907Eaf3E'
const blocksPerYear = 3600 * 24 * 365
const strategyInstance = new web3.eth.Contract(strategyAbi, strategyAddr)
const invested = new BigNumber(await strategyMethods.getInvestedBalance(strategyInstance))
Expand Down Expand Up @@ -75,7 +75,7 @@ const getApy = async (underlying, cTokenAddr, strategyAddr, reduction) => {
.div(10 ** (18 - underlyingDecimals))

const underlyingPrice = await getTokenPrice(underlying, CHAIN_IDS.ZKSYNC)
const rewardPrice = await getTokenPrice(RF, CHAIN_IDS.ZKSYNC)
const rewardPrice = await getTokenPrice(ZK, CHAIN_IDS.ZKSYNC)

const rewardAPRSupply = rewardPerYearSupply
.times(rewardPrice)
Expand Down
Loading