Submitted by juancito, also found by KrisApostolov, nemveer, RED-LOTUS-REACH, 0xmuxyz, ciphermarco, ladboy233, Bauchibred, Viktor_Cortess, 0xnev, ArmedGoose, 0x3b, ginlee, and mitko1111
The Uniswap addLiquidity() function expects the slippage params amountAMin, and amountBMin to be passed.
The reLP() sets those values as 0, which in other terms, means that the contract is ok with receiveing less amount of tokens than the fair market price when providing liquidity.
Less LP tokens will be received during the reLP() call, as it will accept any amount of tokens while adding liquidity to Uniswap.
The reLP() is used by the bond functions, and uses 0 for the amountAMin, and amountBMin values passed to the addLiquidity() function on the Uniswap router:
This will make the function return less lp tokens than expected, while rebalancing.
Set the amountAMin and amountBMin parameters to the expected minimum values.
psytama (Dopex) confirmed
