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
Currently the implementation means that the number of token in a pool + the number of token in its reserve address is exactly the amount that have been created on Archethic.
However if someone send tokens directly to the pool or the reserve address, then we cannot rely on there balance to ensure the 1:1 ratio of the bridge.
Describe the solution you'd like
To ease the calculation of this ration, the pool can have a new public variable "reserve" that must be update every time a swap is finished. So this variable should always be the exact amount that as been bridged
Epic
No response
The text was updated successfully, but these errors were encountered:
Describe the problem you discovered
Currently the implementation means that the number of token in a pool + the number of token in its reserve address is exactly the amount that have been created on Archethic.
However if someone send tokens directly to the pool or the reserve address, then we cannot rely on there balance to ensure the 1:1 ratio of the bridge.
Describe the solution you'd like
To ease the calculation of this ration, the pool can have a new public variable "reserve" that must be update every time a swap is finished. So this variable should always be the exact amount that as been bridged
Epic
No response
The text was updated successfully, but these errors were encountered: