Submitted by shaflow2, also found by prapandey031, zhaojohnson, DadeKuma, peanuts, oakcobalt, and wasm_it
There are no related functions to set fee_protocol, which prevents the protocol from accumulating protocol fees.
The pool contract defines the protocol fee rate fee_protocol, but there is no function to set it.
The contract also defines the collect_protocol and collect_protocol_7540_F_A_9_F functions to collect fees. However, since the protocol fee rate cannot be set, the protocol will never accumulate any protocol fees.
pkg/seawater/src/lib.rs
pkg/seawater/src/pool.rs
Add the relevant functions to enable protocol fees.
pkg/seawater/src/pool.rs:
pkg/seawater/src/lib.rs:
af-afk (Superposition) confirmed and commented:
0xsomeone (judge) commented:
For this audit, 16 reports were submitted by wardens detailing low risk and non-critical issues. The report highlighted below by ZanyBonzy received the top score from the judge.
The following wardens also submitted reports: oakcobalt, DadeKuma, prapandey031, SBSecurity, Tigerfrake, adeolu, ABAIKUNANBAEV, zhaojie, swapnaliss, devival, zhaojohnson, Testerbot, Nikki, shaflow2, and Silvermist.
