require(pTo.amount >= amount) on transfer

This commit is contained in:
perissology 2018-06-27 16:54:59 -07:00
parent ed7c4b8b47
commit 2e3609aeac
1 changed files with 1 additions and 0 deletions

View File

@ -458,6 +458,7 @@ contract LiquidPledgingBase is AragonApp, LiquidPledgingStorage, PledgeAdmins, P
require(pFrom.amount >= amount);
pFrom.amount -= amount;
pTo.amount += amount;
require(pTo.amount >= amount);
Transfer(from, to, amount);
_callPlugins(false, from, to, amount);