-
Notifications
You must be signed in to change notification settings - Fork 182
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
improve(emp): Match synthetic and collateral precision #2145
Conversation
Signed-off-by: Nick Pai <npai.nyc@gmail.com> update tests, remove bytecode Signed-off-by: Nick Pai <npai.nyc@gmail.com> update liquidator tests Signed-off-by: Nick Pai <npai.nyc@gmail.com> wip Signed-off-by: Nick Pai <npai.nyc@gmail.com> Revert "wip" This reverts commit 3820b4f. Revert "update tests, remove bytecode" This reverts commit 5c66a42. update ppm tests Signed-off-by: Nick Pai <npai.nyc@gmail.com>
Signed-off-by: Nick Pai <npai.nyc@gmail.com>
Signed-off-by: Nick Pai <npai.nyc@gmail.com>
Signed-off-by: Nick Pai <npai.nyc@gmail.com>
Signed-off-by: Nick Pai <npai.nyc@gmail.com>
Signed-off-by: Nick Pai <npai.nyc@gmail.com>
Signed-off-by: Nick Pai <npai.nyc@gmail.com>
Signed-off-by: Nick Pai <npai.nyc@gmail.com>
Signed-off-by: Nick Pai <npai.nyc@gmail.com>
Signed-off-by: Nick Pai <npai.nyc@gmail.com>
Signed-off-by: Nick Pai <npai.nyc@gmail.com>
Signed-off-by: Nick Pai <npai.nyc@gmail.com>
Signed-off-by: Nick Pai <npai.nyc@gmail.com>
Signed-off-by: Nick Pai <npai.nyc@gmail.com>
Signed-off-by: Nick Pai <npai.nyc@gmail.com>
Signed-off-by: Nick Pai <npai.nyc@gmail.com>
Signed-off-by: Nick Pai <npai.nyc@gmail.com>
Signed-off-by: Nick Pai <npai.nyc@gmail.com>
Signed-off-by: Nick Pai <npai.nyc@gmail.com>
Signed-off-by: Nick Pai <npai.nyc@gmail.com>
Signed-off-by: Nick Pai <npai.nyc@gmail.com>
Signed-off-by: Nick Pai <npai.nyc@gmail.com>
Signed-off-by: Nick Pai <npai.nyc@gmail.com>
@@ -1919,9 +1919,6 @@ contract("PerpetualLiquidatable", function(accounts) { | |||
await syntheticToken.addMinter(USDCLiquidationContract.address); | |||
await syntheticToken.addBurner(USDCLiquidationContract.address); | |||
|
|||
// Get newly created synthetic token and set it as the global synthetic token. | |||
syntheticToken = await Token.at(await USDCLiquidationContract.tokenCurrency()); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is uneccessary since we now create syntheticToken
at top of section.
Signed-off-by: Nick Pai <npai.nyc@gmail.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! left 2 nit comments
packages/core/contracts/financial-templates/expiring-multiparty/ExpiringMultiPartyCreator.sol
Outdated
Show resolved
Hide resolved
packages/core/test/financial-templates/expiring-multiparty/ExpiringMultiPartyCreator.js
Outdated
Show resolved
Hide resolved
…iringMultiPartyCreator.js Co-authored-by: Chris Maree <christopher.maree@gmail.com>
Signed-off-by: Nick Pai <npai.nyc@gmail.com>
Motivation
Parallels implementation #2119 for the EMP.
Summary
Refactors SyntheticToken creation out of the EMP and into the EMPCreator to save bytecode. Bytecode is added so that EMP contract dynamically sets the SyntheticToken precision based on the collateral token's precision.
Issue(s)
Fixes #2144