Skip to content

Commit

Permalink
Correct a comment about pool update being correct and fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
af-afk committed Nov 25, 2024
1 parent 8205999 commit d022721
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
1 change: 1 addition & 0 deletions pkg/seawater/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -717,6 +717,7 @@ impl Pools {
self.position_owners.get(id),
Error::PositionOwnerOnly
);

assert_or!(pool.enabled.get(), Error::PoolDisabled);

let (amount_0, amount_1) =
Expand Down
3 changes: 0 additions & 3 deletions pkg/seawater/src/pool.rs
Original file line number Diff line number Diff line change
Expand Up @@ -228,9 +228,6 @@ impl StoragePool {
.to_i128()
.ok_or(Error::LiquidityAmountTooWide)?;

// [update_position] should also ensure that we don't do this on a pool that's not currently
// running

self.update_position(id, delta)
}

Expand Down

0 comments on commit d022721

Please sign in to comment.