-
Notifications
You must be signed in to change notification settings - Fork 51
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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.
- Loading branch information
1 parent
095ac50
commit 62fa31d
Showing
1 changed file
with
18 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters