Skip to content

Commit

Permalink
fix: refactor proptest logic to be a bit more real
Browse files Browse the repository at this point in the history
  • Loading branch information
nseguias committed Jul 2, 2024
1 parent a723074 commit be083ad
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions integration-tests/tests/integration.proptest-regressions
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,4 @@
# everyone who runs the test benefits from these saved cases.
cc 665858dcc5830455dc0630eaf9625a3d2405e454c4076c621758527ffaac7e01 # shrinks to epochs = 1, actions = [Swap("alice", "uusdc", "uusdc", 1)]
cc 908335e2674e6f38633c4ca6b8b1448412ee9a7c32a2a495533aa2750494464f # shrinks to epochs = 10, actions = [Swap(Addr("migaloo1h3s5np57a8cxaca3rdjlgu8jzmr2d2zz55s5y3"), "peggy0x87aB3B4C8661e07D6372361211B96ed4Dc36B1B5", "peggy0x87aB3B4C8661e07D6372361211B96ed4Dc36B1B5", 1), Swap(Addr("migaloo1h3s5np57a8cxaca3rdjlgu8jzmr2d2zz55s5y3"), "peggy0x87aB3B4C8661e07D6372361211B96ed4Dc36B1B5", "peggy0x87aB3B4C8661e07D6372361211B96ed4Dc36B1B5", 1), Swap(Addr("migaloo1h3s5np57a8cxaca3rdjlgu8jzmr2d2zz55s5y3"), "peggy0x87aB3B4C8661e07D6372361211B96ed4Dc36B1B5", "peggy0x87aB3B4C8661e07D6372361211B96ed4Dc36B1B5", 1), Swap(Addr("migaloo1h3s5np57a8cxaca3rdjlgu8jzmr2d2zz55s5y3"), "peggy0x87aB3B4C8661e07D6372361211B96ed4Dc36B1B5", "uusdc", 1), Bond(Addr("migaloo1h3s5np57a8cxaca3rdjlgu8jzmr2d2zz55s5y3"), "factory/migaloo1ludaslnu24p5eftw499f7ngsc2jkzqdsrvxt75/bWHALE", 1), Swap(Addr("migaloo1h3s5np57a8cxaca3rdjlgu8jzmr2d2zz55s5y3"), "peggy0x87aB3B4C8661e07D6372361211B96ed4Dc36B1B5", "peggy0x87aB3B4C8661e07D6372361211B96ed4Dc36B1B5", 1)]
cc be34ad8aed4e8ea2f874d3e9ec4e2dc2b336d39726932964bbe269679d09d3f5 # shrinks to actions = [Swap(Addr("migaloo1ludaslnu24p5eftw499f7ngsc2jkzqdsrvxt75"), "peggy0x87aB3B4C8661e07D6372361211B96ed4Dc36B1B5", "uusdc", 42591), Bond(Addr("migaloo1h3s5np57a8cxaca3rdjlgu8jzmr2d2zz55s5y3"), "factory/migaloo1ludaslnu24p5eftw499f7ngsc2jkzqdsrvxt75/bWHALE", 46593), Unbond(Addr("migaloo193lk767456jhkzddnz7kf5jvuzfn67gyfvhc40"), "factory/migaloo1ludaslnu24p5eftw499f7ngsc2jkzqdsrvxt75/bWHALE", 94375), Bond(Addr("migaloo1ludaslnu24p5eftw499f7ngsc2jkzqdsrvxt75"), "factory/migaloo1ludaslnu24p5eftw499f7ngsc2jkzqdsrvxt75/bWHALE", 77180)]
2 changes: 1 addition & 1 deletion packages/white-whale-std/src/bonding_manager.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ pub struct Config {
pub epoch_manager_addr: Addr,
/// Distribution denom for the rewards
pub distribution_denom: String,
/// Unbonding period in nanoseconds. The time that needs to pass before an unbonded position can
/// Unbonding period in epochs. The time (in epochs) that needs to pass before an unbonded position can
/// be withdrawn
pub unbonding_period: u64,
/// A fraction that controls the effect of time on the weight of a bond. If the growth rate is set
Expand Down
2 changes: 1 addition & 1 deletion packages/white-whale-std/src/pool_network/swap.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ pub fn assert_max_spread(
max_spread: Option<Decimal>,
offer_amount: Uint128,
return_amount: Uint128,
spread_amount: Uint128,
_spread_amount: Uint128,
) -> StdResult<()> {
let max_spread: Decimal256 = max_spread
.unwrap_or(Decimal::from_str(DEFAULT_SLIPPAGE)?)
Expand Down

0 comments on commit be083ad

Please sign in to comment.