Theopetra / theo-contracts

1 stars 0 forks source link

Post Audit Critical issue STT-01 | Free STHEO Tokens #123

Closed nflora808 closed 2 years ago

nflora808 commented 2 years ago

Audit Issue Description

Issue Location: Theopetra/Staking.col: 193

A user can stake THEO and claim sTHEO tokens, and then calls function forfeit( ) and retrieve these staked THEO.

By repeating the process above, the user can gain tons of free sTHEO tokens, and the function circulatingSupply( ) will get the incorrect return, which is used in the calculation of many functions.

Auditor Recommendation

Reconsider the logic of function forfeit( )

Billing/Time-Tracking/Access