require(pTo.amount >= amount) on transfer
This commit is contained in:
parent
ed7c4b8b47
commit
2e3609aeac
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue