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
It seems there are certain scenarios where the portal doesn't correctly construct the batch call for dApp staking.
One such example is of an account YJWhHaMqUerTV3wsjQdfC9ybEBvGCoDUFqP8sVX3me8ti3v.
This is the account state at block 6409946 (Astar):
What we can notice is:
account has ~702,510.26 ASTR
amount locked in dApp staking is 562,000.00 ASTR + 2x70,250.00 ASTR = 702,500.00 ASTR
this state is ok ✅
However, in the next block, a batch call is emitted to lock more funds: LINK
This should fail, but due to a bug in runtime it passes, and additional 70,250.00 ASTR are locked, resulting in user having
more locked funds than they have ASTR. This will be fixed in runtime within day(s).
However, frontend shouldn't even construct such batch.
Best case, the user should be allowed to re-lock their unlocking funds.
The text was updated successfully, but these errors were encountered:
Describe the bug
It seems there are certain scenarios where the portal doesn't correctly construct the batch call for dApp staking.
One such example is of an account
![Screenshot 2024-06-24 at 14 19 32](https://private-user-images.githubusercontent.com/3002868/342335674-bbce4f93-9708-4b0d-93f4-4371f4e17d84.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjQ4MDQwODAsIm5iZiI6MTcyNDgwMzc4MCwicGF0aCI6Ii8zMDAyODY4LzM0MjMzNTY3NC1iYmNlNGY5My05NzA4LTRiMGQtOTNmNC00MzcxZjRlMTdkODQucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI0MDgyOCUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNDA4MjhUMDAwOTQwWiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9YjZkYmIxMjU3NTJhN2QzYTkxMGYzOTNkNmQ4YjBkMTMzNTY0YTFhMzA2ZWRmOGJlOTNhNzY1MDRjNmMzMjU3ZCZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QmYWN0b3JfaWQ9MCZrZXlfaWQ9MCZyZXBvX2lkPTAifQ.RciicaclYWKDiGvhZAry5gcKmvx1lxZgWq6d8orKf8A)
YJWhHaMqUerTV3wsjQdfC9ybEBvGCoDUFqP8sVX3me8ti3v
.This is the account state at block 6409946 (Astar):
What we can notice is:
However, in the next block, a batch call is emitted to lock more funds: LINK
This should fail, but due to a bug in runtime it passes, and additional 70,250.00 ASTR are locked, resulting in user having
more locked funds than they have ASTR. This will be fixed in runtime within day(s).
However, frontend shouldn't even construct such batch.
Best case, the user should be allowed to re-lock their unlocking funds.
The text was updated successfully, but these errors were encountered: