mirror of
https://github.com/cake-tech/cake_wallet.git
synced 2024-12-22 19:49:22 +00:00
Adjust affiliate fee
This commit is contained in:
parent
66e639f02b
commit
5c059f9486
1 changed files with 4 additions and 2 deletions
|
@ -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<Trade> 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
|
||||
|
|
Loading…
Reference in a new issue