Skip to content

Commit

Permalink
add tests
Browse files Browse the repository at this point in the history
  • Loading branch information
anyxem committed Feb 18, 2025
1 parent 6af3aad commit a92ef0e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/utils/emission.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,8 @@ describe("get_annual_subsidy", () => {
expect(get_annual_subsidy(10)).toEqual(53085090); // 202 * 262790 + 151 * 10
expect(get_annual_subsidy(262800)).toEqual(39682800); // 151 * 262800
expect(get_annual_subsidy(262801)).toEqual(39682762); // 151 * 262799 + 113
expect(get_annual_subsidy(2628000)).toEqual(15);
expect(get_annual_subsidy(2627999)).toEqual(15); // 15
expect(get_annual_subsidy(2628000)).toEqual(0); // 0 because 2628000 is the last block and delegator will not get any reward for it
expect(get_annual_subsidy(2628001)).toEqual(0); // 0
});
})
Expand Down

0 comments on commit a92ef0e

Please sign in to comment.