You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently stake is reduced while adding liquidity, in the token.transfer handler. However if the transfer is due to adding liquidity then the stake is still held by the LP provider, so it shouldn't be reduced.
In that case same while removing liquidity, stake should not be added.
The text was updated successfully, but these errors were encountered:
In order to achieve this in the event handlers for adding/removing liquidity we add/subtract from the stake, such that the effects of stake on transfer are neutralised.
TODO: What when users transfer LP Tokens? Should stake get transferred to that user then?
Currently stake is reduced while adding liquidity, in the token.transfer handler. However if the transfer is due to adding liquidity then the stake is still held by the LP provider, so it shouldn't be reduced.
In that case same while removing liquidity, stake should not be added.
The text was updated successfully, but these errors were encountered: