The report claims that a calculation in the Vader protocol divides before multiplying, which can round the result down to zero. An attacker could exploit this rounding to obtain a zero or incorrect value from the affected calculation.
The original report as published on Code4rena. Images and videos are our own copies; raw HTML is shown as text. View it on Code4rena.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
Generating the AI write-up for this report.
This usually takes about a minute. You can read the original meanwhile; this page updates itself.
Writing the technical write-up
Writing the version for beginners
Checking every passage against the original
How it worked
Root cause
Likely the calculation performs integer division before a multiplication, so the intermediate value is truncated and the final result can be zero or too small.
What the attacker needed
Access to the affected contract function
Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
Generating the AI write-up for this report.
This usually takes about a minute. You can read the original meanwhile; this page updates itself.
Writing the technical write-up
Writing the version for beginners
Checking every passage against the original
Computers store whole numbers with a fixed size, and when you divide whole numbers the remainder is thrown away. If you divide too early in a calculation, a small number can become zero, and multiplying it afterwards stays zero. This report argues that the code does the division too soon, so the final result can be wrong.
What is Smart contracts?
Flaws in on-chain code that let an attacker drain funds, freeze them or break the protocol's accounting.