Closed cryptokage1996 closed 2 months ago
I suggest to change existing query
Elys.tier.leveragelp
and not add new query
- Add a additional field in this query as mentioned in slack discussion, so there will be two fields
total_assets
andtotal_borrows
- Reuse
RetrieveLeverageLpTotal
, you can return three values from this function.assets
,borrows
,net
.- Use
net
for portfolio calculation and other two for query purposes- This will simplify and reuse the existing logic
As mentioned in ticket i created 2 seprate queries
Description
Closes:
What has Changed?
LeverageLpTotal
Liabilities should be accounted separately in order to calculate full portfolio balance.QueryTotalBorrows
total debt in usdc should be accounted hereAuthor Checklist
All items are required. Please add a note to the item if the item is not applicable and please add links to any relevant follow up issues.
I have...
!
to the type prefix if API or client breaking changeReviewers Checklist
All items are required. Please add a note if the item is not applicable and please add your handle next to the items reviewed if you only reviewed selected items.
I have...
!
in the type prefix if API or client breaking changeDeployment Notes
Are there any specific considerations to take into account when deploying these changes? This may include new dependencies, scripts that need to be executed, or any aspects that can only be evaluated in a deployed environment.
Screenshots and Videos
Please provide any relevant before and after screenshots by uploading them here. Additionally, demo videos can be highly beneficial in demonstrating the process.