Skip to content

Commit

Permalink
fix: amounts and precision errorsn
Browse files Browse the repository at this point in the history
  • Loading branch information
0xp3th1um committed Jan 8, 2025
1 parent 8f209a1 commit a3e1021
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions src/DssSpell.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -679,22 +679,20 @@ contract DssSpellTest is DssSpellTestBase {
// the amount to be paid
// Initialize the array with the number of payees

Payee[17] memory payees = [
Payee[15] memory payees = [
Payee(address(usds), wallets.addr("INTEGRATION_BOOST_INITIATIVE"), 3_000_000 ether), // Note: ether is only a keyword helper
Payee(address(usds), wallets.addr("WHITEHAT_PAYOUT_2025_01_09"), 1_000 ether), // Note: ether is only a keyword helper
Payee(address(usds), wallets.addr("IMMUNEFI_COMISSION"), 100 ether), // Note: ether is only a keyword helper
Payee(address(usds), wallets.addr("RESILIENCE_RESEARCH_FUNDING"), 32_000 ether), // Note: ether is only a keyword helper
Payee(address(usds), wallets.addr("BLUE"), 4_000 ether), // Note: ether is only a keyword helper
Payee(address(usds), wallets.addr("BLUE"), 87_602 ether), // Note: ether is only a keyword helper
Payee(address(usds), wallets.addr("BONAPUBLICA"), 4_000 ether), // Note: ether is only a keyword helper
Payee(address(usds), wallets.addr("BYTERON"), 533 ether), // Note: ether is only a keyword helper
Payee(address(usds), wallets.addr("CLOAKY"), 4_000 ether), // Note: ether is only a keyword helper
Payee(address(usds), wallets.addr("CLOAKY"), 26_836 ether), // Note: ether is only a keyword helper
Payee(address(usds), wallets.addr("JULIACHANG"), 4_000 ether), // Note: ether is only a keyword helper
Payee(address(usds), wallets.addr("ROCKY"), 2_790 ether), // Note: ether is only a keyword helper
Payee(address(usds), wallets.addr("VIGILANT"), 4_000 ether), // Note: ether is only a keyword helper
Payee(address(usds), wallets.addr("BLUE"), 83_602 ether), // Note: ether is only a keyword helper
Payee(address(usds), wallets.addr("CLOAKY_KOHLA_2"), 10_000 ether), // Note: ether is only a keyword helper
Payee(address(usds), wallets.addr("CLOAKY_ENNOIA"), 10_000 ether), // Note: ether is only a keyword helper
Payee(address(usds), wallets.addr("CLOAKY"), 22_836 ether), // Note: ether is only a keyword helper
Payee(address(sky), wallets.addr("BLUE"), 550_000 ether), // Note: ether is only a keyword helper
Payee(address(sky), wallets.addr("CLOAKY"), 438_000 ether) // Note: ether is only a keyword helper
];
Expand All @@ -709,8 +707,8 @@ contract DssSpellTest is DssSpellTestBase {

// Fill the total values based on the source for the transfers above
TreasuryAmounts memory expectedTreasuryBalancesDiff = TreasuryAmounts({
mkr: 0.00 ether, // Note: ether is only a keyword helper
sky: 0.00 ether // Note: ether is only a keyword helper
mkr: -41.166666666666666666 ether, // Note: ether is only a keyword helper
sky: 0.00 ether // Note: ether is only a keyword helper
});

// Vote, schedule and warp, but not yet cast (to get correct surplus balance)
Expand Down

0 comments on commit a3e1021

Please sign in to comment.