Skip to content

Commit

Permalink
add tests, fix functions
Browse files Browse the repository at this point in the history
  • Loading branch information
sentilesdal committed May 14, 2024
1 parent 4832750 commit 756b866
Show file tree
Hide file tree
Showing 2 changed files with 331 additions and 51 deletions.
1 change: 1 addition & 0 deletions crates/hyperdrive-math/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,7 @@ impl Distribution<State> for Standard {
short_average_maturity_time: rng
.gen_range(fixed!(0)..=FixedPoint::from(365 * one_day_in_seconds) * fixed!(1e18))
.into(),
// lp_total_supply = active_lp_total_supply + withdrawal_shares_total_supply - withdrawal_shares.ready_to_withdraw
lp_total_supply: rng
.gen_range(fixed!(1_000e18)..=fixed!(100_000_000e18))
.into(),
Expand Down
Loading

0 comments on commit 756b866

Please sign in to comment.