Skip to content

Commit

Permalink
Merge pull request #18 from pancakeswap/fix-arb-pool
Browse files Browse the repository at this point in the history
Fix arb pool data. Upload new ALP
  • Loading branch information
chef-huan authored Aug 14, 2024
2 parents 44039fa + 38e17c3 commit b25f15c
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 3 deletions.
7 changes: 7 additions & 0 deletions src/pools/constants/pools/42161.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,13 @@ export const arbPool: SerializedPool[] = [
contractAddress: "0x97E3384447B52A63374EBA93cb36e02a20633926",
tokenPerSecond: 0.0310019841,
},
{
sousId: 7,
stakingToken: arbTokens.alp,
earningToken: arbTokens.arb,
contractAddress: "0xaa0de632a4071642d72ceb03577f5534ea196927",
tokenPerSecond: 0.043402,
},
].map((p) => ({
...p,
contractAddress: getAddress(p.contractAddress) as `0x${string}`,
Expand Down
13 changes: 10 additions & 3 deletions src/pools/service/poolMetrics.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,16 @@ const fillMetric = async (poolConfig: SerializedPool, chainId) => {
poolConfig.metrics.totalStaked = totalStaked;
poolConfig.metrics.stakingTokenPrice = stakingTokenPrice;
poolConfig.metrics.earningTokenPrice = earningTokenPrice;
poolConfig.metrics.apr = apr;
poolConfig.metrics.alpApr = alpApr;
poolConfig.metrics.endTimestamp = endTimestamp;
if (chainId === ChainId.ARBITRUM_ONE && poolConfig.sousId === 6) {
poolConfig.metrics.apr = 0;
poolConfig.metrics.alpApr = 0;
poolConfig.metrics.endTimestamp = 1723610066;
} else {
poolConfig.metrics.apr = apr;
poolConfig.metrics.alpApr = alpApr;
poolConfig.metrics.endTimestamp = endTimestamp;
}


return poolConfig;
};

0 comments on commit b25f15c

Please sign in to comment.