serai/substrate/dex/pallet
Luke Parker 62fa31de07
If the pool has yet to start, insert a price of 0
The test failures were caused by not inserting any price, causing the first
price to immediately become the oraclized price. While that's not inherently
invalid, suggesting the tests should've been the ones updated, it opens an
exploit where whoever first adds liquidity has the opportunity to set a
ridiculous price and DoS the set. Not oraclizing until we have an entire
period, achieved by inserting 0s during the initial blocks, ensures an open
launch for such discovery.
2023-12-05 12:29:36 -05:00
..
src If the pool has yet to start, insert a price of 0 2023-12-05 12:29:36 -05:00
Cargo.toml Add/update msrv for common/*, crypto/*, coins/*, and substrate/* 2023-11-21 01:19:40 -05:00
LICENSE-AGPL3 Add Dex pallet (#407) 2023-11-05 12:02:34 -05:00
LICENSE-APACHE2 Add Dex pallet (#407) 2023-11-05 12:02:34 -05:00