Lucene search

K
code423n4Code4renaCODE423N4:2022-01-BEHODLER-FINDINGS-ISSUES-171
HistoryFeb 01, 2022 - 12:00 a.m.

Stacking with 0 amount will reset rewarded without claiming any flan.

2022-02-0100:00:00
Code4rena
github.com
6
staking
reward
vulnerability

Handle

Randyyy

Vulnerability details

Impact

A user can stake their token by calling stake function, by supplying a token, however staking 0 amount token is allowed, staking 0 amount will reset the reward debt, without minting a single flan token, the function will treat as if the user do the staking for the first time, and didn’t get any reward.

#Proof of Concept


The text was updated successfully, but these errors were encountered:

All reactions