Skip to content

Commit 939bf86

Browse files
committed
Remove destination collateral checks
1 parent cbe535b commit 939bf86

File tree

1 file changed

+9
-8
lines changed

1 file changed

+9
-8
lines changed

src/features/transfer/useTokenTransfer.ts

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -108,14 +108,15 @@ async function executeTransfer({
108108

109109
const warpCore = getWarpCore();
110110

111-
const isCollateralSufficient = await warpCore.isDestinationCollateralSufficient({
112-
originTokenAmount,
113-
destination,
114-
});
115-
if (!isCollateralSufficient) {
116-
toast.error('Insufficient collateral on destination for transfer');
117-
throw new Error('Insufficient destination collateral');
118-
}
111+
// TODO: replace after https://github.com/hyperlane-xyz/hyperlane-monorepo/issues/3851
112+
// const isCollateralSufficient = await warpCore.isDestinationCollateralSufficient({
113+
// originTokenAmount,
114+
// destination,
115+
// });
116+
// if (!isCollateralSufficient) {
117+
// toast.error('Insufficient collateral on destination for transfer');
118+
// throw new Error('Insufficient destination collateral');
119+
// }
119120

120121
addTransfer({
121122
timestamp: new Date().getTime(),

0 commit comments

Comments
 (0)