Submitted by ladboy233
HolographOperator.sol#L899
HolographOperator.sol#L920
HolographOperator.sol#L924
HolographOperator.sol#L928
HolographOperator.sol#L932
When user call unbondUtilityToken to unstake the token, the function reads the available bonded amount, and transfers back to the operator.
https://github.com/code-423n4/2022-10-holograph/blob/f8c2eae866280a1acfdc8a8352401ed031be1373/contracts/HolographOperator.sol#L899
the logic is clean, but does not conform to the buisness requirement in the documentation, the doc said
https://docs.holograph.xyz/holograph-protocol/operator-network-specification#operator-job-selection
The charge 0.1% fee is not implemented in the code.
there are two incentive for bounded operator to stay,
the first is the reward incentive, the second is to avoid penalty with unbonding.
Without chargin the unstaking fee, the second incentive is weak and the operator can unbound or bond whenver they want
https://docs.holograph.xyz/holograph-protocol/operator-network-specification#operator-job-selection
We recommend charge the 0.1% unstaking fee to make the code align with the busienss requirement in the doc.
alexanderattar (Holograph) commented:
alexanderattar (Holograph) commented:
