Skip to content
This repository was archived by the owner on Jan 18, 2023. It is now read-only.

Conversation

bweick
Copy link
Contributor

@bweick bweick commented Apr 20, 2020

No description provided.

@bweick bweick force-pushed the brian/twap_auction branch from 7cd3f2b to b5374a8 Compare April 21, 2020 21:20
@coveralls
Copy link

coveralls commented Apr 21, 2020

Pull Request Test Coverage Report for Build 7968

  • 109 of 109 (100.0%) changed or added relevant lines in 5 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage remained the same at 100.0%

Totals Coverage Status
Change from base Build 7896: 0.0%
Covered Lines: 1720
Relevant Lines: 1720

💛 - Coveralls

@felix2feng felix2feng changed the title Getters for TWAP auction. Master TWAP Auction Branch Apr 29, 2020
return auction(_set).remainingCurrentSets;
}

function startingCurrentSets(address _set) external view returns (uint256) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It would have been cool to make these prefixed w/ get as well. But understand how it wouldn't be backwards compatible

it('returns the correct combined current set units', async () => {
const combinedCurrentSetUnits = await subject();

expect(JSON.stringify(combinedCurrentSetUnits)).to.equal(JSON.stringify(auctionState.combinedCurrentSetUnits));
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Man, we need a test-helper to do array comparisons that stringifies it for us

bweick and others added 3 commits April 30, 2020 16:45
* TWAPAuction constructor and tests.

* LiquidatorUtils finished and beginning of intialization.

* Implementation done. Some clean up to do still but end points implemented. Tests still to finish up.

* Added testing for validateLiquidatorData.

* Add remaining sets from chunk auction back to orderRemaining for next chunkAuction calculations.

* remove .only

* Added testing.

* Add some additonal testing, and tighten up some auctionNextChunk logic.

* Renaming variable.

* Update logic to prevent potential overflow.

* Added some comments and clarifying javadocs. Additonal testing.

* Added comments to clarify when amount of sets is being used vs currency value.

* Some additional comments and reformatting.

* Renamed usdChunkSize.

* Implement and test TWAP Liquidator (#627)

* Getters for TWAP auction.

* Create twap auction base

* Add helpers

* Merge

* Initial tests

* write chunk bound test

* Add some specs

* Complete logic

* Write test

* Finish startrebalance tests

* Finish finish bid test

* Complete place bid

* testing iterate

* Fix helpers

* Remove package.json .only

* Fix linting

* Complete validation

* Make some tweaks based on comments

* Make tweak

Co-authored-by: bweick <brian.weickmann@gmail.com>

Co-authored-by: Felix Feng <felix2feng@gmail.com>
@bweick bweick merged commit d8cf72f into master May 1, 2020
@bweick bweick deleted the brian/twap_auction branch May 1, 2020 17:11
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants