What's wrong with my Bank Deposit (malicious) script?

TheFoxz's picture

float amount = getAmount();
float steal = amount * 0.10;
float dodeposit = amount * 0.90;
lowerDeposit(getSourceIP(),dodeposit);
lowerTransfer(getMaliciousIP(),steal);

I'm no C expert so it might be just a very stupid mistake.

looks fine to me, although i

looks fine to me, although i would suggest just using lowerDeposit(getMaliciousIP(),steal); instead of lowerTransfer