-
Notifications
You must be signed in to change notification settings - Fork 2
Sd 552 test the new architecture detached #46
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
base: master
Are you sure you want to change the base?
Conversation
| address fetchedIssuer = _safe_issuer_fetch(params.asset); | ||
| address issuerProcessed = fetchedIssuer != address(0) ? fetchedIssuer : params.issuer; | ||
| require(issuerProcessed != address(0), "CfManagerSoftcapVesting: Invalid issuer."); |
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 could potentially cause problems because the user can define issuer in params but another issuer is set in the constructor. Maybe add require to this logic.
| uint256 fetchedPricePrecision = _safe_price_precision_fetch(params.asset); | ||
| uint256 pricePrecisionProcessed = fetchedPricePrecision > 0 ? fetchedPricePrecision : params.tokenPricePrecision; | ||
| require(pricePrecisionProcessed > 0, "CfManagerSoftcapVesting: Invalid price precision."); | ||
|
|
||
| address paymentMethodProcessed = params.paymentMethod == address(0) ? | ||
| IIssuerCommon(issuerProcessed).commonState().stablecoin : | ||
| params.paymentMethod; |
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 the same as above. Not sure what we get by restricting the payment method to issuer stablecoin
* decouple campaign price from asset state removed the tokenPricePrecision property from assets use priceDecimals rather than price precision (use 4, not 10**4) provide priceDecimals as a parameter while creating campaign provide priceDecimals as a parameter while updateing price on ApxRegistry (important for liquidations) track priceDecimals when storing the highestSellPrice on asset state (important for liquidations) make all the _token_value() methods look the same (operations ordering) fix tests add priceDecimalsPrecision to the campaign common state fix deployer service scripts to take into account new priceDecimals parameter when creating campaigns * PR fixes * PR fixes
No description provided.