You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Description
Currently, the system only supports funding an escrow using HMT tokens. To enhance flexibility, we need to allow users to fund escrows using other token balances (e.g., USD) when the HMT balance is insufficient. This involves updating the logic to support cross-token funding and reflecting this correctly in the database, specifically in the payments table.
Implementation details
Add the token fund to escrow table to reflect in the database the token used for funding the escrow when we enable the ability to use other tokens than HMT.
Add the ability to use other tokens balance to fund an escrow, for example imagine a user has these balances:
100 HMT (rate 0.05 USD)
50 USD
The user wants to launch an escrow and fund it with 200 HMT. In payments table we should reflect it as:
Amount
Token
USD_rate
Job Id
-100
HMT
0.05
1
-5
USD
1
1
The text was updated successfully, but these errors were encountered:
Description
Currently, the system only supports funding an escrow using HMT tokens. To enhance flexibility, we need to allow users to fund escrows using other token balances (e.g., USD) when the HMT balance is insufficient. This involves updating the logic to support cross-token funding and reflecting this correctly in the database, specifically in the payments table.
Implementation details
Add the token fund to escrow table to reflect in the database the token used for funding the escrow when we enable the ability to use other tokens than HMT.
Add the ability to use other tokens balance to fund an escrow, for example imagine a user has these balances:
The user wants to launch an escrow and fund it with 200 HMT. In payments table we should reflect it as:
The text was updated successfully, but these errors were encountered: