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
/** * Buy RAM and immediately burn RAM. * An inline transfer from payer to system contract of tokens will be executed. * * @param payer - the payer of buy RAM & burn. * @param quantity - the quantity of tokens to buy RAM & burn with. * @param memo - the memo string to accompany the transaction.*/
[[eosio::action]]
voidbuyramburn( const name& payer, const asset& quantity, const std::string& memo );
Preconditions
require_auth(payer)
must provide quantity above 0 amount
returns action_return_buyram
no additional logging requirements since actions can be covered by logbuyram & logramchange
Purpose
Create
buyramburn
ACTION where any account can buy RAM and immediately burn the RAM bytes received.Currently, the only way to purchase & buy RAM is to:
logbuyram
to know how much bytes were purchasedOr
This
buyramburn
ACTION would eliminate the requirement of listening onlogbuyram
or pre-computing the Bancor RAM buying output.Feedback provided by
buyramburn
ACTIONPreconditions
require_auth(payer)
quantity
above 0 amountaction_return_buyram
logbuyram
&logramchange
References
buyramself
ramburn
The text was updated successfully, but these errors were encountered: