Phoenix-Protocol-Group / phoenix-contracts

Source code of the smart contracts of the Phoenix DeFi hub DEX protocol
GNU General Public License v3.0
10 stars 6 forks source link

Pool, Pool_Stable: adds verification if the current timestamp is after a desired timestamp. #322

Closed gangov closed 3 months ago

gangov commented 3 months ago

Lints, fixes test and adds a unit tests

gangov commented 3 months ago

lots of changes, I should probably start splitting PR's like this one in smaller chunks.

Most noticable changes:

gangov commented 3 months ago

env.ledger().timestamp() > deadline - without = should be fine, since we're reversing