Closed FidelVe closed 3 weeks ago
In terms of overall design I would say the following:
I would like to see one instance that stays permanent.
We should be rolling all different instant users once done to the permanent instant.
Otherwise we are paying users and then saying goodbye. Feels like a waste.
Overall goal, repetitive daily tasks.
implemented here
https://github.com/icon-community/xp-icon-community-backend/pull/23
Design document for cross chain collateral feature
Introduction
This document describes the design of adding support for tracking cross chain collateral.
Technical Overview
For tracking cross chain collateral, we need the user to provide the wallet (and chain) they want to track.
Once we have that information we can call the
getAccountPositions
method on the Balanced DEX contract by providing the cross chain address like in the following example:Request:
Response:
holdings.inj.bnusd
is equal tostandings.inj.total_debt_in_USD
which is the amount of loan in USDstandings.collateral
is the amount of collateral in ICX andstandings.total_debt
is the amount of loan in ICX.Discovery and Design exploration
Before implementing the feature the following questions need to be answered:
are we moving from a "season" based design to a "continuous" design? (i.e. xpgo dashboard will run continuosly instead of running by seasons as we are doing now), This has a big impact on the schema and database design. Latest discussions on the subject are leaning towards a continuous design.
how do we handle the case where the user has multiple wallets on the same chain? (e.g multiple wallet on BSC chain) Do we allow the user to track multiple wallets on the same chain?
Can the user remove a wallet from tracking?
once a wallet is added from which point in time do we start tracking the wallet? (e.g. from the moment the wallet is added or from the moment the wallet has a position on the DEX)
@R0bi7 @FezBox @DavidFBD please provide your input in these questions