Closed tiagofilipenunes closed 2 months ago
Latest commit: |
47c1b7c
|
Status: | ✅ Deploy successful! |
Preview URL: | https://6104f29b.carbon-app-sei.pages.dev |
Branch Preview URL: | https://hotfix-no-external-price.carbon-app-sei.pages.dev |
Latest commit: |
47c1b7c
|
Status: | ✅ Deploy successful! |
Preview URL: | https://9a7a7f14.carbon-app-csq.pages.dev |
Branch Preview URL: | https://hotfix-no-external-price.carbon-app-csq.pages.dev |
[ ] withdraw from strategy id 7486212072260646196194241363498900652154 try to withdraw 0.000000000000000004 GOKU error: update mutation failed Error: division-by-zero [ See: https://links.ethers.org/v5-errors-NUMERIC_FAULT-division-by-zero ] (fault="division-by-zero", operation="div", code=NUMERIC_FAULT, version=bignumber/5.7.0)
[x] CTA stays disabled
while editing strategy: 8507059173023461586584365185794205286538
update market price
select token to keep
confirm checkbox expect to see the cta enabled.
[x] edit market price trigger metamask popup
edit prices
change market price actual: metamask popup shows up and ask the user to sign the transaction expected: nothing to happen until i click the cta.
Market price for overlapping strategies
Market price definition
User defined market price is defined if user fills the input. Calculated market price is defined if strategy has budget External market price is defined if both token has an entry in coingecko
Market price order
We should always use the market price in this order of importance (if 1 is not defined we use 2, ...) :
Edit price
If price/spread has not changed :
If price/spread has changed :
Edit budget
If there is none of the market prices above is defined, we display the market price input to the user.