Skip to content

Commit

Permalink
aura wbtc-badger remove dupe
Browse files Browse the repository at this point in the history
  • Loading branch information
slasher125 committed Oct 11, 2022
1 parent 00fbc73 commit 211c438
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions src/adaptors/aura/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,6 @@ const BAL_ADDRESS = '0xba100000625a3754423978a60c9317c58a424e3D'.toLowerCase();

const SECONDS_PER_YEAR = 60 * 60 * 24 * 365;

const cliffSize = 100_000;
const cliffCount = 500;
const maxSupply = 100_000_000;
const minSupply = 50_000_000;

const getAuraMintAmount = (balEarned, auraSupply) => {
const auraUnitsMinted =
(((500 - (auraSupply - 50000000) / 100000) * 2.5 + 700) / 500) * balEarned;
Expand Down Expand Up @@ -130,7 +125,8 @@ const main = async () => {

res = res
.filter(Boolean)
.filter((p) => p.pool !== '0xe8cc7e765647625b95f59c15848379d10b9ab4af');
.filter((p) => p.pool !== '0xe8cc7e765647625b95f59c15848379d10b9ab4af')
.sort((a, b) => a.apyReward - b.apyReward);

// subgraph returns some pools more than once, removing those dupes here
const uniquePools = new Set();
Expand Down

0 comments on commit 211c438

Please sign in to comment.