eoscostarica / evodex

Official Web Interface for Evolution DEX on EOS mainnet :rocket:
MIT License
21 stars 23 forks source link

Check Balance to optimize RAM #80

Closed xavier506 closed 4 years ago

xavier506 commented 4 years ago

Issue reported by sergio in order to optimize RAM

Add action in eosjs as

Sometimes users won't have the token for RAM payments

xavier506 commented 4 years ago

@adriexnet / @sergioyuhjtman

Can you please describe this issue further

sergioyuhjtman commented 4 years ago

Whenever a user performs an exchange operation to receive a token that she does not previously have, the RAM for the new record will be paid by evolutiondex. The table belongs to the token contract. This is how the standard eosio.token works (the user will pay for the RAM the first time she sends some amount of that token). It is preferrable to avoid this by making the user sign an "open" action from the token contract in these cases, in the same transaction.