diff --git a/relay/configs/prod-bsc.json b/relay/configs/prod-bsc.json index 1548ce5f..11c559af 100644 --- a/relay/configs/prod-bsc.json +++ b/relay/configs/prod-bsc.json @@ -52,7 +52,7 @@ "endpoint": "/fees", "amb": { "privateKey": "in env", - "minBridgeFeeUSD": 0, + "minBridgeFeeUSD": 5, "minTransferFeeUSD": 1, "explorerURL": "https://explorer-api.ambrosus.io", "transferFeeRecipient": "0x", @@ -63,7 +63,7 @@ }, "side": { "privateKey": "in env", - "minBridgeFeeUSD": 0, + "minBridgeFeeUSD": 5, "minTransferFeeUSD": 0.5, "explorerURL": "https://api.bscscan.com/api?apikey=NFH875QU828E37MQD7XB3QHFBE4XTC2AKH", "transferFeeRecipient": "0x", diff --git a/relay/configs/prod-eth.json b/relay/configs/prod-eth.json index f24e7340..6285eb93 100644 --- a/relay/configs/prod-eth.json +++ b/relay/configs/prod-eth.json @@ -75,7 +75,7 @@ "endpoint": "/fees", "amb": { "privateKey": "in env", - "minBridgeFeeUSD": 0, + "minBridgeFeeUSD": 5, "minTransferFeeUSD": 10, "explorerURL": "https://explorer-api.ambrosus.io", "transferFeeRecipient": "0x", @@ -87,7 +87,7 @@ }, "side": { "privateKey": "in env", - "minBridgeFeeUSD": 0, + "minBridgeFeeUSD": 5, "minTransferFeeUSD": 0.5, "explorerURL": "https://api.etherscan.io/api?apikey=DY4Z86MQ2D9E24C6HB98PTA79EKJ5TQIFX", "transferFeeRecipient": "0x", diff --git a/relay/configs/test-bsc.json b/relay/configs/test-bsc.json index 26a58bb1..204e48b2 100644 --- a/relay/configs/test-bsc.json +++ b/relay/configs/test-bsc.json @@ -52,7 +52,7 @@ "endpoint": "/fees", "amb": { "privateKey": "in env", - "minBridgeFeeUSD": 0, + "minBridgeFeeUSD": 5, "minTransferFeeUSD": 1, "explorerURL": "https://explorer-api.ambrosus-test.io", "transferFeeRecipient": "0x", @@ -63,7 +63,7 @@ }, "side": { "privateKey": "in env", - "minBridgeFeeUSD": 0, + "minBridgeFeeUSD": 5, "minTransferFeeUSD": 0.5, "explorerURL": "https://api-testnet.bscscan.com/api?apikey=NFH875QU828E37MQD7XB3QHFBE4XTC2AKH", "transferFeeRecipient": "0x", diff --git a/relay/configs/test-eth.json b/relay/configs/test-eth.json index 07c54f4e..286b4dee 100644 --- a/relay/configs/test-eth.json +++ b/relay/configs/test-eth.json @@ -70,7 +70,7 @@ "endpoint": "/fees", "amb": { "privateKey": "in env", - "minBridgeFeeUSD": 0, + "minBridgeFeeUSD": 5, "minTransferFeeUSD": 1, "explorerURL": "https://explorer-api.ambrosus-test.io", "transferFeeRecipient": "0x", @@ -82,7 +82,7 @@ }, "side": { "privateKey": "in env", - "minBridgeFeeUSD": 0, + "minBridgeFeeUSD": 5, "minTransferFeeUSD": 0.5, "explorerURL": "https://api-sepolia.etherscan.io/api?apikey=DY4Z86MQ2D9E24C6HB98PTA79EKJ5TQIFX", "transferFeeRecipient": "0x", diff --git a/relay/internal/service_fee/fee/fee_bridge.go b/relay/internal/service_fee/fee/fee_bridge.go index 6aa3e386..66f274b5 100644 --- a/relay/internal/service_fee/fee/fee_bridge.go +++ b/relay/internal/service_fee/fee/fee_bridge.go @@ -6,7 +6,8 @@ import ( ) var percentFromAmount = map[uint64]int64{ - 0: 0.0 * 100, // 0.. ...$ => 0% + 0: 1.0 * 100, // 0..100_000$ => 1% + 100_000: 0.5 * 100, // 100_000...$ => 0.5% } func getBridgeFee(nativeUsdPrice, tokenUsdPrice, amount, minBridgeFee decimal.Decimal) (decimal.Decimal, error) {