Skip to content

Commit

Permalink
fix: update rewards payout formula (#896)
Browse files Browse the repository at this point in the history
* fix propotional apy cap

* add more tests

* wip

* wip

* cleanup math

* add more tests

* add more tests

* fix tests

* clippy

* cleanup wip

* more tests passing

* more tests passing

* fix expired locks

* all tests passing

* cleanup

* add proper error type

* cleanup reward vault creation

* fix pot creation accounts

* split functions as per role

* transfer from pot

* implement decay rate

* add decay tests

* cleanup

* cleanup

* chore: update tangle-subxt

* chore: update js types

---------

Co-authored-by: shekohex <[email protected]>
  • Loading branch information
1xstj and shekohex authored Jan 27, 2025
1 parent 48a8d70 commit d9225b1
Show file tree
Hide file tree
Showing 26 changed files with 16,091 additions and 19,173 deletions.
2 changes: 0 additions & 2 deletions pallets/multi-asset-delegation/src/types.rs
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,9 @@ use tangle_primitives::types::RoundIndex;

pub mod delegator;
pub mod operator;
pub mod rewards;

pub use delegator::*;
pub use operator::*;
pub use rewards::*;

pub type BalanceOf<T> =
<<T as Config>::Currency as Currency<<T as frame_system::Config>::AccountId>>::Balance;
Expand Down
43 changes: 0 additions & 43 deletions pallets/multi-asset-delegation/src/types/rewards.rs

This file was deleted.

275 changes: 0 additions & 275 deletions pallets/rewards/src/functions.rs

This file was deleted.

Loading

0 comments on commit d9225b1

Please sign in to comment.