Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(edits): UMA Extension Edits #157

Conversation

pblivin0x
Copy link
Contributor

@pblivin0x pblivin0x commented Jan 2, 2024

@pblivin0x pblivin0x changed the base branch from master to ckoopmann/optimistic-auction-rebalance-extension January 2, 2024 19:46
@coveralls
Copy link

coveralls commented Jan 2, 2024

Coverage Status

coverage: 77.027% (+25.7%) from 51.286%
when pulling 9d744cc on pblivin0x/uma-extension-edits
into ba40dae on ckoopmann/optimistic-auction-rebalance-extension.

@ckoopmann ckoopmann force-pushed the pblivin0x/uma-extension-edits branch from c0e2d82 to 0aaf4a8 Compare January 3, 2024 01:55
@@ -412,7 +414,7 @@ if (process.env.INTEGRATIONTEST) {
{
collateral: collateralAssetAddress,
liveness,
bondAmount: BigNumber.from(0),
Copy link
Collaborator

Choose a reason for hiding this comment

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

@pblivin0x Normally this should work with 0 bondAmount as well as we are comparing it against the minimumBond as returned by the oracle for a given collateral token.
However it seems that the oracle returns a minimum bond of "0" for INDEX which we should raise / double check with the UMA team.

See:

function _pullBond(OptimisticRebalanceParams memory optimisticRebalanceParams) internal returns (uint256) {

@ckoopmann ckoopmann marked this pull request as ready for review January 4, 2024 07:45
@ckoopmann ckoopmann merged commit 83356e6 into ckoopmann/optimistic-auction-rebalance-extension Jan 4, 2024
7 checks passed
@ckoopmann ckoopmann deleted the pblivin0x/uma-extension-edits branch January 4, 2024 07:45
pblivin0x added a commit that referenced this pull request Jan 9, 2024
* Initialize OptimisticAuctionRebalance module from Global version and fix compilation issues

* Add AssetAllowList to BaseOptimisticRebalanceExtension

* Use extisting AuctionRebalanceExtension

* Only allowed assets as new components

* Port tests from global version

* smol fix

* PR Feedback round 2

* PR Feedback round 3

* Simplify constructor tests

* Copy unit tests and run integrated with existing dseth deployment

* Test failing with unsupported identifier error

* All tests passing against uma deployed oracle

* Set block number individually in test

* Add isOpen boolean gate

* Set isOpen to false after starting rebalance

* Add onlyIfOpen modifier to startRebalance function

* Refactor / extend integration tests

* Disable locking set token

* Adjust tests

* Add V1 suffix

* Remove shouldLockSetToken argument entirely from propose method

* Add events for updating the isOpen parameter

* chore(edits): UMA Extension Edits (#157)

* Add events for updating the isOpen parameter

* lintoor

* remove .only()

* lintoor

* fix AssetAllowList nits

* Run only new integration tests

* Fix unittests

* Add tests for require statements in proposeRebalance

* Add tests for emitted events

* Extend event emission test

* Adjust integration test to use index token as proposer collateral (currently failing)

* integration test test

* cleanups

* edit integration tests

* Test bond transfer and claim construction

* Fix unittest

---------

Co-authored-by: ckoopmann <[email protected]>

* Add comment with link to optimistic governor reference implementation of _constructClaim

* Additional tests arround asset allow list

* Additional tests to increase coverage

* Declare setToken and auctionModule as immutable

* Remove Proposal struct because we are only managing one product per extension

* Additional tests to trigger require statements in dispute callback

* Fix integration tests

* Update contracts/adapters/AuctionRebalanceExtension.sol

* integration test cleanups

* fix buy auction params

* Update contracts/adapters/OptimisticAuctionRebalanceExtensionV1.sol

* cleanups

* Dummy commit to retrigger CI

---------

Co-authored-by: pblivin0x <[email protected]>
Co-authored-by: Pranav Bhardwaj <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants