Closed gangov closed 3 months ago
lots of changes, I should probably start splitting PR's like this one in smaller chunks.
Most noticable changes:
packages/phoenix/utils.rs
- new macro that verifies if the current timestamp is within the boundaries set by the userpool
and pool_stable
contract.rs files - uses the new macro to check that we are within the specified timeframe when interacting with provide_liquidity
, withdraw_liquidity
and swap
factory
and multihop
- linttests
- lints and adds test cases for the happy and bad paths when using this macro in pool
and pool_stable
env.ledger().timestamp() > deadline
- without =
should be fine, since we're reversing
Lints, fixes test and adds a unit tests