code-423n4 / 2023-05-maia-findings

24 stars 13 forks source link

Normalizing decimals to 18 decimals returns the amount scaled up by a magnitude different than 18 when the original tokenDecimals are not 18 decimals #170

Closed code423n4 closed 1 year ago

code423n4 commented 1 year ago

Lines of code

https://github.com/code-423n4/2023-05-maia/blob/main/src/ulysses-omnichain/BranchBridgeAgent.sol#L1335-L1342

Vulnerability details

Impact

Proof of Concept

Tools Used

Manual Audit

Recommended Mitigation Steps

Assessed type

Math

c4-judge commented 1 year ago

trust1995 marked the issue as duplicate of #758

c4-judge commented 1 year ago

trust1995 marked the issue as satisfactory

c4-judge commented 1 year ago

trust1995 marked the issue as partial-50