Skip to content

Commit

Permalink
Updates to SP rewards
Browse files Browse the repository at this point in the history
  • Loading branch information
Cody Butz authored and Cody Butz committed Dec 9, 2024
1 parent fe4a81a commit 1c16854
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions indy_rewards/sp/distribution.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,13 @@ def get_pool_weights(
new_iassets: set[IAsset],
has_stakers: set[IAsset],
) -> dict[IAsset, float]:
if day >= datetime.date(2024, 12, 5):
return {
IAsset.from_str("ibtc"): (3606.19 / 21189.77),
IAsset.from_str("ieth"): (1176.91 / 21189.77),
IAsset.from_str("iusd"): (15406.67 / 21189.77),
IAsset.from_str("isol"): (1000.00 / 21189.77),
}
if day >= datetime.date(2024, 11, 26):
return {
IAsset.from_str("ibtc"): (2469.29 / 19664.35),
Expand Down Expand Up @@ -355,6 +362,8 @@ def _is_at_least_24h_old(account: dict, snapshot_day: datetime.date) -> bool:


def sp_epoch_emission(epoch: int) -> float:
if epoch >= 526:
return 21189.77
if epoch >= 524:
return 19664.35

Expand Down

0 comments on commit 1c16854

Please sign in to comment.