Skip to content

Commit

Permalink
reward calculator error
Browse files Browse the repository at this point in the history
  • Loading branch information
cdyfng committed Apr 22, 2021
1 parent 3a483b3 commit 1d0cf2f
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions dex/mdex2/heco_mdx_bot/heco.js
Original file line number Diff line number Diff line change
Expand Up @@ -323,18 +323,16 @@ async function main() {
18,
16 //MDX/USDT in Liquidity
);
console.log(
"Total Pending MDX:",
mdx_hbtc_pool.rewardMdx + mdx_usdt_pool.rewardMdx + mdx_hbtc.rewardMdx
);
const rewardMdx =
mdx_hbtc_pool.rewardMdx + mdx_usdt_pool.rewardMdx + mdx_hbtc.rewardMdx;
console.log("Total Pending MDX:", rewardMdx);
const lp_mdx =
mdx_fil.token0 +
mdx_hbtc.token0 +
mdx_husd.token1 +
mdx_hbtc_pool.token0 +
mdx_usdt_pool.token0 +
mdx_hbtc_pool.rewardMdx +
mdx_usdt_pool.rewardMdx;
rewardMdx;
const lp_fil = mdx_fil.token1;
const lp_hbtc = mdx_hbtc.token1 + mdx_hbtc_pool.token1;
const lp_husd = mdx_husd.token0;
Expand Down

0 comments on commit 1d0cf2f

Please sign in to comment.