Details
swaped_tokens : list all tokens that have liquidity with MID token
All pools are created with $MID as first token.
The swap function will allow to swap in both way
MID <-> MEX or MEX <-> MID
first_fee from a pool is applied on tokens sent by the user and used to increase liquidity.
second_fee is applied on amount of tokens that the user receive and added as $MID staking rewards.
MID to MEX : MID are added to liquidity and MEX added as staking rewards
Dualswap function can use 2 pools position in one time . eg wegld to mex will be done in one time doing WEGLD <-> MID <-> MEX takin the fees only one time instead of two.
WEGLD to MEX : WEGLD are added to liquidity and MEX added as staking rewards.
Last updated