mirror of
https://gitlab.com/pulsechaincom/lighthouse-pulse.git
synced 2025-01-14 07:58:19 +00:00
Verify transfer now checks for amount + fees. (#457)
This commit is contained in:
parent
7458022fcf
commit
1b26a36ebc
@ -62,8 +62,8 @@ fn verify_transfer_parametric<T: EthSpec>(
|
|||||||
|
|
||||||
// Verify the sender has adequate balance.
|
// Verify the sender has adequate balance.
|
||||||
verify!(
|
verify!(
|
||||||
time_independent_only || sender_balance >= transfer.amount,
|
time_independent_only || sender_balance >= total_amount,
|
||||||
Invalid::FromBalanceInsufficient(transfer.amount, sender_balance)
|
Invalid::FromBalanceInsufficient(total_amount, sender_balance)
|
||||||
);
|
);
|
||||||
|
|
||||||
// Verify sender balance will not be "dust" (i.e., greater than zero but less than the minimum deposit
|
// Verify sender balance will not be "dust" (i.e., greater than zero but less than the minimum deposit
|
||||||
|
Loading…
Reference in New Issue
Block a user