-
Notifications
You must be signed in to change notification settings - Fork 5.8k
fix: collateral tvl not being accounted #14458
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
Conversation
Signed-off-by: 0xhitgo <[email protected]>
The adapter at projects/sentiment exports TVL:
|
Signed-off-by: 0xhitgo <[email protected]>
The adapter at projects/sentiment exports TVL:
|
From your UI it seems the exports should be TVL = ~1.1M$ and Borrowed should be ~4.9M$. Can you explain the difference? https://app.sentiment.xyz/create-position |
~1.1M$ is the available liquidity but a large portion of the borrowed liq gets swapped to more collateral and stays in the sentiment position contracts. thinking again more accurate tvl would be available liquidity in pool plus assets in all position contracts. |
Signed-off-by: 0xhitgo <[email protected]>
The adapter at projects/sentiment exports TVL:
|
the value exported by your tvl function should describe available liquidity (excluding borrowed funds) |
add batching to api.multiCall for get asset (collateral) data in sentiment positions