Skip to content

Commit

Permalink
Revert "fix: Temporary default to Axelar USDC tokens on deposit while…
Browse files Browse the repository at this point in the history
… CCTP is down (#514)" (#523)
  • Loading branch information
rosepuppy authored May 10, 2024
1 parent 176d954 commit 8bf5cf1
Showing 1 changed file with 0 additions and 22 deletions.
22 changes: 0 additions & 22 deletions src/views/forms/AccountManagementForms/DepositForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,6 @@ export const DepositForm = ({ onDeposit, onError }: DepositFormProps) => {
errors: routeErrors,
errorMessage: routeErrorMessage,
isCctp,
depositOptions,
} = useSelector(getTransferInputs, shallowEqual) || {};
const chainId = chainIdStr ? parseInt(chainIdStr) : undefined;

Expand Down Expand Up @@ -136,27 +135,6 @@ export const DepositForm = ({ onDeposit, onError }: DepositFormProps) => {
};
}, []);

// Temporary default to Axelar USDC tokens while CCTP is down.
// Revert this change once CCTP is back up.
useEffect(() => {
const USDCTokenAddresses = new Set([
'0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48',
'0x07865c6E87B9F70255377e024ace6630C1Eaa37F',
'0xB97EF9Ef8734C71904D8002F8b6Bc66Dd9c48a6E',
'0x0b2C639c533813f4Aa9D7837CAf62653d097Ff85',
'0xaf88d065e77c8cC2239327C5EDb3A432268e5831',
]);

Object.values(depositOptions?.assets?.toArray() || []).forEach((asset) => {
if (USDCTokenAddresses.has(asset.type)) {
abacusStateManager.setTransferValue({
field: TransferInputField.token,
value: asset.type,
});
}
});
}, [depositOptions]);

useEffect(() => {
if (error) onError?.();
}, [error]);
Expand Down

0 comments on commit 8bf5cf1

Please sign in to comment.