Submitted by Abdessamed
/contracts/pool-manager/src/manager/commands.rs#L81
For every swap operation, the protocol is entitled to a get fees from the tokens out, the sponsor has confirmed that fees should be taken for every swap. However, the current implementation incorrectly gives the protocol_fee control to pool creators when creating pool:
Pool creators can specify 0 fees for pool_fees.protocol_fee, causing the protocol to lose swap fees they are entitled to.
Consider moving the protocol_fee to the contracts config, rather than being controlled by pool creators.
jvr0x (MANTRA) confirmed
3docSec (judge) commented:
DadeKuma (warden) commented:
Abdessamed (warden) commented:
3docSec (judge) commented:
