ExcaliburPair
Fork of the UniswapV2Pair contract.
Github: https://github.com/ExcaliburExchange/contracts/blob/main/core/ExcaliburV2Pair.sol
Pair-based swap fees
For each pair, the owner is able to update its feeAmount
to up to 2%. The aim is to adapt our offer to each "type" of pairs, to the market general situation, or to project owners strategies. We'll mainly use the following settings:
Lowest values for stables
0.15% for classic pairs (it will also be the default value when a new one is created)
The largest values will be used in specific cases or for more exotic pairs
Swap referrals
A referrerAddress
param has been included into the swap()
function, so that a declared referrer can specify to the AMM that a swap went through him. He will then receive his share of the swap fees (if he has previously been whitelisted into the ExcaliburFactory).
The referral amount is calculated from the total swap fees and the referral share obtained from the ExcaliburFactory. Then, the FeeManager's and LPs' allocations are calculated, based on the remaining amount:
Last updated