
🦀 Rust, Web3 development and security — blockchain engineer at @extropy
13 Followers
it's probably not the obvious but, bool?
the lifetime?
Can you spot the bug?🐞 Below is a snippet of a smart contract function, critical to calculating the value of expired positions in a liquidity pool. This function is pivotal for ensuring fairness in liquidity provider rewards. An assumption made during development introduced a subtle yet significant flaw.
recast:farcaster://casts/0x1e40b7182b4049fd84246c5d3ea17e32cb842512fd3eac953502b023473f6918