No,

the original protocol fees go like this;
Swap fee is 0.30%
LP provider fee is: 0.25%
Protocol fee is 0.05%

value in the code is 5 https://github.com/Uniswap/v2-core/blob/8b82b04a0b9e696c0e83f8b2f00e5d7be6888c79/contracts/UniswapV2Pair.sol#L99


now if i want to change the numbers;
Swap fee is 0.30% (considering other parts of the code are changed to reflect this)
LP provider fee is: 0.20%
Protocol fee is 0.10%
what value goes there?

or

Swap fee is 0.75% (considering other parts of the code are changed to reflect this)
LP provider fee is: 0.25%
Protocol fee is 0.50%
what value goes there?

I have a working example for the following;
Swap fee is 0.30%
LP provider fee is: 0.17%
Protocol fee is 0.13%
value is: 1.307692308

May 20, 2022, 12:42 PM
I don't think you understand my question / problem.
I know that, I am asking what value should be there for the examples I gave.
i tried, but it does not make any sense. I've even plugged the formula from their whitepaper to a few different solvers and the results don't match the whitepaper
if you plug this into any solver, the result is 0.286 and not 0.0286
as the swap part is easily changeable to fit the new values.
please re-read this,

the original protocol fees go like this;
Swap fee is 0.30%
LP provider fee is: 0.25%
Protocol fee is 0.05%
Value on SC is 5

I have a working example for the following;
Swap fee is 0.30%
LP provider fee is: 0.17%
Protocol fee is 0.13%
value on SC is: 1.307692308

why 5 there and why 1.307692308
sure, then enlighten me on that part
I am willing to pay someone to explain and provide answers for this question. DM me.
May 20, 2022, 12:57 PM

© 2024 Draquery.com All rights reserved.