Comments (8)
from squeeth-monorepo.
Hey! Where are you seeing a division by 0 error?
You're not seeing your short squeeth position on the positions tab or positions card?
If you can, do you want to DM me a screenshot / console? @alexis²#3549 on discord 😄
from squeeth-monorepo.
I dont use Discord.
Cant view short position on summary on "Trade" page and on "Position" page but I see that I've a position on "Trade" page "Collateral you redeem: xxx ETH " and "Current Collateral ratio: XXX %"
Division by zero when const trade = await Trade... on useSqueethPool.ts
Really annoying.
from squeeth-monorepo.
Appreciate the feedback and sorry about this! We'll work on getting this fixed but I can't replicate rn - do you think you could email me your addr at [email protected] ?
from squeeth-monorepo.
Done
from squeeth-monorepo.
Thank you very much! We'll look into this and keep you updated
from squeeth-monorepo.
Ah ok it looks like you minted oSQTH and then separately sold it on Uniswap vs. using our Short/Open tab that mints and sells in one step
This is why it’s not showing a position, because that flow isn’t currently supported
We’ll work on adding this and I’ll you know as soon its available!
from squeeth-monorepo.
o.O
Ok...
Please verify your code on etherscan so we can manage our position(and check your SC) in the meantime...
from squeeth-monorepo.
Related Issues (20)
- Quantity output rather than limit price for generalSwap?
- Current profit threshold not calculating in strategies page
- Change sendBack() to send ETH as the last step HOT 1
- Is declaring interfaces repeatedly in line cheaper vs declaring it in memory and using it repeatedly or having it in storage HOT 1
- Doesn't support trading in potential oSQTH/USD pools
- FLASH_W_BURN returns oSQTH to user, but doesn't need to as it is done later in sendBack()
- flashswapWBurnBuyLong() doesn't let a user without a vault (ie vault 0) buy oSQTH without burning
- Naming improvements HOT 2
- Natspec/comments review + improvements
- Update DataTypes for consistency
- Fix interface pulling ropsten data on mainnet and mainnet data on ropsten
- Hardcoded uniswap pool in a few places HOT 1
- change way that getAmountsToLp is returned in rebalanceWithoutVault()
- RebalanceVaultNft - DecreaseLpLiquidity along with DepositIntoVault will often fail
- BurnExactRemoved flag in rebalanceNftVault() fails at times
- Allow users to go short even if they have some long position and vice versa by changing hard block into overrideable warning
- Crab Position Value can be off by up to `2 * priceHedgeThreshold` (currently +-40%)
- Potential Minor Gas Savings
- Update crab accounting to burn a min amount of liquidity on initial deposit and have min amount of deposit
- Fix 1wei diff issue in test
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from squeeth-monorepo.