Skip to content

Commit

Permalink
ANGLE adapted (snapshot-labs#518)
Browse files Browse the repository at this point in the history
  • Loading branch information
clement-ux authored Apr 2, 2022
1 parent c314ae9 commit 72d2515
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions src/strategies/sd-boost/index.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
import { formatUnits } from '@ethersproject/units';
import { multicall } from '../../utils';

export const author = 'clement-ux';
export const version = '0.0.2';
export const version = '0.0.3';

const abi = [
'function balanceOf(address account) external view returns (uint256)',
Expand All @@ -11,7 +10,6 @@ const abi = [
];

const veSDT = '0x0C30476f66034E11782938DF8e4384970B6c9e8a';
const DECIMALS = 18;

const F1 = 0.4;
const F2 = 0.6;
Expand Down Expand Up @@ -122,10 +120,7 @@ export async function strategy(
// (workingSupply / 10 ** DECIMALS).toString()
//);
// console.log(``);```
return [
addresses[i],
parseFloat(formatUnits(adjustedBalance_i.toString(), DECIMALS))
];
return [addresses[i], adjustedBalance_i / 10 ** options.decimals];
})
);

Expand Down

0 comments on commit 72d2515

Please sign in to comment.