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
Related to this ticket. Fixes to be made so that Nabla modals should show up as transferrable balance.
Our chain extension exposes functions conforming to the ERC-20 interface. In ERC-20, the only function to get the balance of an address is using the balanceOf() call. At the moment, we are returning the 'free' balance of a user, see here. However, the free_balance is not necessarily the transferable balance, as it does not take into account the locked or reserved tokens.
See the relation of the system::account() query to the transferable amount.
TODO
Change the balance_of function of the chain extension to return the transferable amount ie. free - reserved - frozen.
The text was updated successfully, but these errors were encountered:
Context
Related to this ticket. Fixes to be made so that Nabla modals should show up as transferrable balance.
Our chain extension exposes functions conforming to the ERC-20 interface. In ERC-20, the only function to get the balance of an address is using the
balanceOf()
call. At the moment, we are returning the 'free' balance of a user, see here. However, thefree_balance
is not necessarily the transferable balance, as it does not take into account the locked or reserved tokens.See the relation of the
![image](https://private-user-images.githubusercontent.com/6690623/336744256-6e7fe0fe-1ad4-49dd-b19e-d5e475ea1251.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjEyMDUwNTEsIm5iZiI6MTcyMTIwNDc1MSwicGF0aCI6Ii82NjkwNjIzLzMzNjc0NDI1Ni02ZTdmZTBmZS0xYWQ0LTQ5ZGQtYjE5ZS1kNWU0NzVlYTEyNTEucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI0MDcxNyUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNDA3MTdUMDgyNTUxWiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9N2I3OTk3MDk0NDU4ZDgwM2RkYjU5OTU3NzEwZGY3MTA5YjNjODFjMjQ3NDRhNjY5NjkyYjgyM2Q5ODdmODI0OCZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QmYWN0b3JfaWQ9MCZrZXlfaWQ9MCZyZXBvX2lkPTAifQ.rEIZTi0zquyg2k0bJgdTX1aGLJFOuQt0p5TpP-ZPhho)
system::account()
query to the transferable amount.TODO
Change the
balance_of
function of the chain extension to return the transferable amount ie.free - reserved - frozen
.The text was updated successfully, but these errors were encountered: