From 5c059f94862cf1348681099f32c4c0c429fabb4b Mon Sep 17 00:00:00 2001 From: OmarHatem Date: Mon, 4 Mar 2024 22:29:49 +0200 Subject: [PATCH] Adjust affiliate fee --- lib/exchange/provider/thorchain_exchange.provider.dart | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/lib/exchange/provider/thorchain_exchange.provider.dart b/lib/exchange/provider/thorchain_exchange.provider.dart index baf37c098..379c79593 100644 --- a/lib/exchange/provider/thorchain_exchange.provider.dart +++ b/lib/exchange/provider/thorchain_exchange.provider.dart @@ -32,7 +32,7 @@ class ThorChainExchangeProvider extends ExchangeProvider { static const _quotePath = '/thorchain/quote/swap'; static const _txInfoPath = '/thorchain/tx/status/'; static const _affiliateName = 'cakewallet'; - static const _affiliateBps = '0'; + static const _affiliateBps = '175'; final Box tradesStore; @@ -99,7 +99,9 @@ class ThorChainExchangeProvider extends ExchangeProvider { final responseJSON = await _getSwapQuote(params); final minAmountIn = responseJSON['recommended_min_amount_in'] as String? ?? '0.0'; - return Limits(min: _thorChainAmountToDouble(minAmountIn)); + final safeMinAmount = _thorChainAmountToDouble(minAmountIn) * 1.05; + + return Limits(min: safeMinAmount); } @override