Skip to content

RAM Considerations

Jona edited this page Jun 18, 2020 · 2 revisions

RAM Considerations

Balance table

The AtomicMarket pays for any RAM costs associated to the balance table. The RAM costs for one row are 112 + 1 + 16 * [amount of different tokens] B.

A balance table entry is only created for accounts that actively interact with the AtomicMarket smart contract or authors of an AtomicAssets collection. It is therefore assumed that an attacker can only for make the AtomicMarket smart contract pay for balance tables rows of accounts that the attacker has control over. The ~3kB of RAM required to create an account that an attacker has to pay is therefore significantly higher than the potential damage caused.

Paying the RAM for sales / auctions

Anyone can pay for the RAM of an existing sale / auction using the paysaleram and payauctram actions.

This is meant to give dapps the ability to pay for sales / auctions of their assets, in order to improve their users' experience.