Skip to content

Commit

Permalink
advance
Browse files Browse the repository at this point in the history
  • Loading branch information
yuli-ferna committed Aug 28, 2023
1 parent 3054d2e commit 0e14f13
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 18 deletions.
3 changes: 1 addition & 2 deletions public/sui/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,7 @@
<div class="container">
<div class="cctp-banner">
<span>
Experience frictionless USDC transfers between Ethereum, Avalanche,
Arbitrum, and Optimism with Circle's CCTP.
Experience frictionless USDC transfers between Ethereum and Avalanche with Circle's CCTP.
</span>
<a class="cctp-link" href="https://portalbridge.com/usdc-bridge" target="_blank" rel="noopener noreferrer">
TRY IT NOW
Expand Down
12 changes: 8 additions & 4 deletions src/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -202,14 +202,18 @@ function App() {
},
[push]
);

// To show Optimism option on SEPT 4th 2023
const bannerMsg =
new Date() < new Date(2023, 8, 4)
? "Experience frictionless USDC transfers between Ethereum, Avalanche, and Arbitrum with Circle's CCTP. "
: "Experience frictionless USDC transfers between Ethereum, Avalanche, Arbitrum, and Optimism with Circle's CCTP. ";

return (
<div className={classes.bg}>
<NewsBar>
<>
<span>
Experience frictionless USDC transfers between Ethereum, Avalanche,
Arbitrum, and Optimism with Circle's CCTP.{" "}
</span>
<span>{bannerMsg}</span>
<Link
href="https://portalbridge.com/usdc-bridge"
target="_blank"
Expand Down
5 changes: 2 additions & 3 deletions src/components/Migration/EvmQuickMigrate.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -147,9 +147,8 @@ function EvmMigrationLineItem({
poolInfo.data.migrator.address,
migrationAmountAbs
);
const transaction = await poolInfo.data.migrator.migrate(
migrationAmountAbs
);
const transaction =
await poolInfo.data.migrator.migrate(migrationAmountAbs);
await transaction.wait();
setTransaction(transaction.hash);
enqueueSnackbar(null, {
Expand Down
10 changes: 4 additions & 6 deletions src/components/SolanaCreateAssociatedAddress.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -58,9 +58,8 @@ export function useAssociatedAccountExistsState(
);
const match = associatedAddress.toString() === readableTargetAddress;
if (match) {
const associatedAddressInfo = await connection.getAccountInfo(
associatedAddress
);
const associatedAddressInfo =
await connection.getAccountInfo(associatedAddress);
if (!associatedAddressInfo) {
if (!cancelled) {
setAssociatedAccountExists(false);
Expand Down Expand Up @@ -112,9 +111,8 @@ export default function SolanaCreateAssociatedAddress({
);
const match = associatedAddress.toString() === readableTargetAddress;
if (match) {
const associatedAddressInfo = await connection.getAccountInfo(
associatedAddress
);
const associatedAddressInfo =
await connection.getAccountInfo(associatedAddress);
if (!associatedAddressInfo) {
setIsCreating(true);
const transaction = new Transaction().add(
Expand Down
5 changes: 2 additions & 3 deletions src/hooks/useHandleRedeem.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -185,9 +185,8 @@ async function evm(
signer
);

const estimateGas = await L2WormholeGateway.estimateGas.receiveTbtc(
signedVAA
);
const estimateGas =
await L2WormholeGateway.estimateGas.receiveTbtc(signedVAA);

// We increase the gas limit estimation here by a factor of 10% to account for some faulty public JSON-RPC endpoints.
const gasLimit = estimateGas.mul(1100).div(1000);
Expand Down

0 comments on commit 0e14f13

Please sign in to comment.