Open robertleifke opened 3 months ago
Description:
The current implementation of the swap fee calculates the amount using the mulDiv function, so the amounts accrued are rounded down instead of rounded up. Thus, any dust from the calculation is given to the user instead of to the protocol.
mulDiv
Description:
The current implementation of the swap fee calculates the amount using the
mulDiv
function, so the amounts accrued are rounded down instead of rounded up. Thus, any dust from the calculation is given to the user instead of to the protocol.