Submitted by SpicyMeatball, also found by oakcobalt, 0x73696d616f, and bin2chen
https://github.com/code-423n4/2024-07-benddao/blob/main/src/yield/YieldStakingBase.sol#L329-L337https://github.com/code-423n4/2024-07-benddao/blob/main/src/yield/YieldStakingBase.sol#L407https://github.com/code-423n4/2024-07-benddao/blob/main/src/yield/YieldStakingBase.sol#L426
No means to retrieve collected fines from the staking contract.
If botAdmin forcefully unstakes a position, a staker will have to pay an additional fine when the stake is repayed:
Note that the users total debt consists of the actual NFT debt and the fine. When the stake is paid off, only the nftDebt is sent to the pool, and the unstakeFine remains in the contract. However, there are no functions that send the collected funds to the admin, and so they will remain in the contract forever.
Implement a function that allows admin to collect fines from the yield staking contract.
Token-Transfer
thorseldon (BendDAO) confirmed and commented:
