Interchain Exchange fees
Game theory exploits
The following fees are suggested to prevent the following:
- Users could potentially take up their own orders to generate fake transactions.
- Users could potentially take up other users' orders to eliminate competition and increase own incentives returns.
- Users could leave their orders passively and not respond to take requests.
General ideas
- Negative maker fee
- Positive taker fee
- Also the DFI made by Maker, inclusive of bonus must be less than fees paid by Taker. Without it fake transactions would be generated to game rewards.
Fees
- Previous
optionFee
is now replaced with non-refundabletakerFee
.- This is to deal the case where Alice refuses to accept Bob's valid HTLC (Scenario 1) and unfairly profits from
optionFee
.
- This is to deal the case where Alice refuses to accept Bob's valid HTLC (Scenario 1) and unfairly profits from
takerFee
is in DFI and is fixed at consensus-set (takerFeePerBTC
* BTC *DEX DFI per BTC rate
).makerDeposit
being the same astakerFee
.- It is refundable upon successful swap.
makerIncentive
25% * takerFee
makerBonus
50% * takerFee
if it's BTC parity trade. BTC DSTs eligible formakerBonus
are consensus-set.
DST maker exiting to Bitcoin
- Maker, pays no fee, but locks up DST (consensus-verifiable).
- Taker makes offer, locks up
takerFee
.- If offer is not accepted after timeout,
takerFee
is refunded.
- If offer is not accepted after timeout,
- Maker accepts offer, locks up DST (consensus-verifiable), burns
makerDeposit
&takerFee
.- If partial amount from offer is accepted, refunds unused
takerFee
proportionally back to Taker.
- If partial amount from offer is accepted, refunds unused
- Taker locks up BTC (non-consensus-verifiable) and updates ICXC on BTC HTLC.
- Maker verifies that BTC HTLC is correct, claims BTC.
- If Taker locks up incorrectly, both parties lose DFI (neither party wins)
- If Maker does not verify, both parties lose DFI (neither party wins)
- Taker claims DST on ICXC.
- Mints
makerDeposit
(refund),makerIncentive
&makerBonus
(if any) to Maker. - Validate that the amounts are correct – no additional tokens are generated.
- Mints
BTC maker entering from Bitcoin
- Maker, pays no fee.
- Taker makes offer, locks up
takerFee
.- If offer is not accepted after timeout,
takerFee
is refunded.
- If offer is not accepted after timeout,
- Maker accepts offer, locks up
makerDeposit
. - Taker locks up DST (consensus-verifiable), burns both
takerFee
andmakerDeposit
.- If Taker does not do it, burns
takerFee
and refundmakerDeposit
to Maker.
- If Taker does not do it, burns
- Maker locks up BTC (non-consensus-verifiable) and updates ICXC on BTC HTLC.
- Taker verifies that BTC HTLC is correct, claims BTC.
- If Maker locks up incorrectly, both parties lose DFI (neither party wins)
- If Taker does not verify, both parties lose DFI (neither party wins)
- Maker claims DST on ICXC
- Mints
makerDeposit
(refund),makerIncentive
&makerBonus
(if any) to Maker. - Validate that the amounts are correct – no additional tokens are generated.
- Mints