There is a if condition in contribute instruction which checks if the contributor field in the contribution account supplied is a zero account/default, if so it initialises it with pubkey of the contributor, fund account pubkey and amount which is zero.
The amount field of contribution account is being set to zero during initialisation , rather than setting the field with the user supplied amount parameter. This is wrong, since it should be updated using the amount parameter. It getting set to zero will cause loss to the user incase of a refund.
Incase if user requests a refund , this will be a loss to the user, since the amount will be 0,which is unfair.
The contest is live. Earn rewards by submitting a finding.
This is your time to appeal against judgements on your submissions.
Appeals are being carefully reviewed by our judges.