Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file added src/assets/img/banner/banner-eth-rebate.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
14 changes: 12 additions & 2 deletions src/components/bridge/ccip/Ccip.vue
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,16 @@
:is-gas-payable="Boolean(isGasPayable)"
@update:isApproveMaxAmount="(value: boolean) => (isApproveMaxAmount = value)"
/>
<information :transfer-type="HistoryTxType.CCIP_BRIDGE" :is-history="false" />
<div>
<information :transfer-type="HistoryTxType.CCIP_BRIDGE" :is-history="false" />
<div v-if="toChainName === CcipNetworkName.Soneium" class="row--banner">
<img
class="banner--eth-rebates"
src="~assets/img/banner/banner-eth-rebate.png"
alt="eth-rebate"
/>
</div>
</div>
</div>
</div>
</div>
Expand All @@ -36,7 +45,7 @@ import { useAccount } from 'src/hooks';
import { HistoryTxType } from 'src/modules/account';
import { defineComponent, ref } from 'vue';
import { useCcipBridge } from '../../../hooks/bridge/useCcipBridge';

import { CcipNetworkName } from 'src/modules/ccip-bridge';
export default defineComponent({
components: {
Information,
Expand Down Expand Up @@ -89,6 +98,7 @@ export default defineComponent({
bridgeFee,
isToSoneium,
isGasPayable,
CcipNetworkName,
inputHandler,
reverseChain,
handleBridge,
Expand Down
4 changes: 4 additions & 0 deletions src/components/bridge/ccip/CcipBridge.vue
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,9 @@
})
}}
</li>
<li v-if="toChainName === CcipNetworkName.Soneium">
{{ $t('bridge.rebate') }}
</li>
<li>
{{ $t('bridge.warningCcipTime', { time: ccipBridgeTime[fromChainName as CcipNetworkName] }) }}
</li>
Expand Down Expand Up @@ -356,6 +359,7 @@ export default defineComponent({
isApproveButtonDisabled,
isBridgeButtonDisabled,
isH160,
CcipNetworkName,
truncate,
bridge,
approve,
Expand Down
18 changes: 18 additions & 0 deletions src/components/bridge/ccip/styles/ccip.scss
Original file line number Diff line number Diff line change
Expand Up @@ -33,3 +33,21 @@
column-gap: 50px;
}
}

.row--banner {
margin-top: 16px;
}

.banner--eth-rebates {
width: 348px;
border-radius: 6px;
@media (min-width: $sm) {
width: 412px;
}
@media (min-width: $md) {
width: 320px;
}
@media (min-width: $xl) {
width: 420px;
}
}
1 change: 1 addition & 0 deletions src/i18n/en-US/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1134,6 +1134,7 @@ export default {
slippage: 'Slippage: {percent}%',
feeOnTransaction: 'Transaction fee: {amount} {symbol}',
feeOnBridge: 'Bridge fee: {amount} {symbol}',
rebate: 'You will receive 0.00008 ETH for gas on Soneium',
gelatoApiError: 'Bridge UI is not available, please try again later',
warningHighTraffic:
'High bridge traffic may delay withdrawal transactions up to 5 hours. We appreciate your patience.',
Expand Down
Loading