Skip to content

Conversation

@boris-lapouga
Copy link
Contributor

  1. Change all to use new isZero
  2. Remove price rounding where applicable
  3. use EPSILON for margin calculation on non-native positions
  4. Fixed getLiquidity function where Math.sqrt wasn't applied properly
  5. Changed the way isNearZero is calculated
  6. Changed PRICE_MAX point to have less zeroes in floating part
  7. Improved (hopefully) readability of calculatePriceRange

@netlify
Copy link

netlify bot commented Nov 14, 2022

Deploy Preview for abs-visim ready!

Name Link
🔨 Latest commit 1512803
🔍 Latest deploy log https://app.netlify.com/sites/abs-visim/deploys/637298f8125ed10009d53cca
😎 Deploy Preview https://deploy-preview-41--abs-visim.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

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.

1 participant