Bezalel Lim
Bezalel Lim
+1 sql_db_plugin had been removed since EOSIO version 1.2.x https://github.com/EOSIO/eos/commit/5e57797f86b7c00e7ac252694511a21f5960534a
then, MAXNUM value constraint ("use only 128 bits of uint to prevent mul overflows.") should be reconsidered for integer multiplication and division error.
But I think safe division can be performed by restricting token amount and ether price parameter. (restricting that ether price and token aboumt value should have trailing decimal (decimalplaces/2) zeros...