Integrating SOV into EOSIO Applications – SOV
Recommended Configuration for dApp integration
USER -transfer> APP (sender pays burn)
An example at 1% burn rate: Sender transfers 100 SOV to Receiver. 101 Subtracted from Senders account balance and 100 sent to Receiver, 1 SOV burned.
APP -Xtransfer> USER (receiver pays burn)
An example at 1% burn rate: Sender ‘xTransfers’ 100 SOV to Receiver. 100 Subtracted from Senders account and 99 sent to Receiver, 1 SOV burned.
***“xTransfer does not utilize the regular transfer action wrapper used for inline actions for transfers. For your smart-contract, you will need to use the longer, more general notation for inline actions”
Why integrate like this?
In order to integrate SOV into an application and not bear the burn cost for users, it is necessary users use the default “transfer” for depositing SOV, and the application uses “xtransfer” to send SOV to users to withdraw.
Applications receiving SOV should use the default transfer action when using the standard on_notify ‘listening’ function when detecting deposits. This allows the amount sent to equal the amount received and will allow received SOV to be correctly accounted for. Using transfer will also negate triggering security systems in place in some applications such as exchanges.
xTransfer is ideal when apps would like to send SOV to their users. This allows the application to not subtract their own funds to pay the transaction burn, and puts it entirely on the user.
These two functions allow for Apps to have flexibility and freedom of deciding who pays the SOV transaction burn as well as enabling compatibility with SOV without the need to change security systems already in place.
Join the SOV telegram https://t.me/eossov for more information and to get involved with our great community
SOV is available to trade on NEWDEX.IO, FINDEX.PRO, EOSSOV.ONE, and BLOKS.IO**
If you haven’t already, you can read the white paper at https://soveos.one
If you have an EOS Genesis account, you can claim your SOV here https://eossov.one,https://eossov.one , https://eostoolkit.io/airgrab , or https://bloks.io/wallet/airgrab until the account is depleted.
**This is not investment advice and is not a recommendation to do anything. Always do your own research.
Published at Fri, 04 Oct 2019 20:13:51 +0000
{flickr|100|campaign}
