Skip to content

Commit

Permalink
chore: update comet
Browse files Browse the repository at this point in the history
  • Loading branch information
mootz12 committed Nov 8, 2023
1 parent d9c7313 commit 0dafadd
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
Binary file modified comet.wasm
Binary file not shown.
4 changes: 2 additions & 2 deletions test-suites/src/setup.rs
Original file line number Diff line number Diff line change
Expand Up @@ -60,9 +60,9 @@ pub fn create_fixture_with_data<'a>(wasm: bool) -> TestFixture<'a> {

// mint LP tokens with whale
fixture.tokens[TokenIndex::BLND].mint(&frodo, &(500_001 * SCALAR_7));
fixture.tokens[TokenIndex::BLND].approve(&frodo, &fixture.lp.address, &i128::MAX, &99999);
// fixture.tokens[TokenIndex::BLND].approve(&frodo, &fixture.lp.address, &i128::MAX, &99999);
fixture.tokens[TokenIndex::USDC].mint(&frodo, &(12_501 * SCALAR_7));
fixture.tokens[TokenIndex::USDC].approve(&frodo, &fixture.lp.address, &i128::MAX, &99999);
// fixture.tokens[TokenIndex::USDC].approve(&frodo, &fixture.lp.address, &i128::MAX, &99999);
fixture.lp.join_pool(
&(50_000 * SCALAR_7),
&vec![&fixture.env, 500_001 * SCALAR_7, 12_501 * SCALAR_7],
Expand Down
8 changes: 7 additions & 1 deletion test-suites/tests/test_emitter.rs
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,13 @@ fn test_emitter() {
// Mint enough tokens to a new backstop address to perform a swap, then swap the backstops
let old_backstop_balance = bstop_token.balance(&fixture.backstop.address);
let new_backstop = Address::random(&fixture.env);
bstop_token.mint(&new_backstop, &(old_backstop_balance + 1));
fixture.tokens[TokenIndex::BLND].mint(&new_backstop, &(505_001 * SCALAR_7));
fixture.tokens[TokenIndex::USDC].mint(&new_backstop, &(13_501 * SCALAR_7));
fixture.lp.join_pool(
&(old_backstop_balance + 1),
&vec![&fixture.env, 505_001 * SCALAR_7, 13_501 * SCALAR_7],
&new_backstop,
);
fixture.emitter.swap_backstop(&new_backstop);
assert_eq!(fixture.env.auths().len(), 0);
assert_eq!(fixture.emitter.get_backstop(), new_backstop.clone());
Expand Down

0 comments on commit 0dafadd

Please sign in to comment.