primitivefinance / portfolio

Portfolio is an automated market making protocol for implementing custom strategies at the lowest cost possible.

Home Page:https://www.primitive.xyz/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Fix: swap event feeAmount argument is using the wrong value

Alexangelj opened this issue · comments

See

iteration.feeAmount = iteration.input.scaleFromWadDown(inputDec);

Incorrectly setting feeAmount, which gets emitted in the Swap event, to the a double scaled down iteration.input value. This line needs to be updated to feeAmount.

Closing this as it's now fixed.