Open zlsecure3 opened 1 year ago
submission_id:1466810144
review_type:GRADING
result: TBD-yes,no
rating: TBD-123
comment: TBD-Rejected,Accepted by Secure3.
severity: TBD-Critical,Medium,Low,Informational
category:
description:
submission_id:1466810144
review_type:CLIENT_FEEDBACK
result: TBD-yes,no
severity: TBD-Critical,Medium,Low,Informational
comment:
submission_id:1466810144
review_type:CLIENT_FEEDBACK_DECISION
result: TBD-yes,no,yes-honored,no-honored
severity: TBD-Critical,Medium,Low,Informational
comment:
subject
The logic of
assert
is wrong.description
The logic of
assert!(amount + credit_service.supplied >= credit_service.maxmium_supply,SUPPLY_OVERFLOW);
is wrong. Thisassert
cause the amount of airdrops exceeds the set maximummaxmium_supply
. For example, the value ofmaxmium_supply
is 100, andsupplied
is 0. Theamount
must be no less than 100.recommendation
It is recommended to modify the code(Line 40) to
assert!(amount + credit_service.supplied <= credit_service.maxmium_supply,SUPPLY_OVERFLOW);
.locations
severity
Critical
damage
exploitability
category
Logical
system_generated: auditor:0xac submission_id:1466810144