Skip to content
Draft
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
21 changes: 0 additions & 21 deletions api/_bridges/cctp-sponsored/strategy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,8 @@ import {
} from "./utils/constants";
import {
getNormalizedSpotTokenSymbol,
isToHyperCore,
simulateMarketOrder,
SPOT_TOKEN_DECIMALS,
assertAccountExistsOnHyperCore,
} from "../../_hypercore";
import { SPONSORED_CCTP_SRC_PERIPHERY_ABI } from "./utils/abi";
import {
Expand Down Expand Up @@ -154,16 +152,6 @@ export async function getQuoteForExactInput(
pct: BigNumber;
} = getZeroBridgeFees(inputToken);

// If recipient does not exist on HyperCore, then we error.
// This is temporary until we can support account creation for sponsored mint/burn routes.
if (isToHyperCore(params.outputToken.chainId)) {
await assertAccountExistsOnHyperCore({
account: params.recipient,
chainId: params.outputToken.chainId,
paramName: "recipient",
});
}

if (params.isEligibleForSponsorship) {
// We guarantee input amount == output amount for sponsored flows
outputAmount = ConvertDecimals(
Expand Down Expand Up @@ -232,15 +220,6 @@ export async function getQuoteForOutput(
pct: BigNumber;
} = getZeroBridgeFees(inputToken);

// If recipient does not exist on HyperCore, then we error.
// This is temporary until we can support account creation for sponsored mint/burn routes.
if (isToHyperCore(params.outputToken.chainId)) {
await assertAccountExistsOnHyperCore({
account: params.recipient,
chainId: params.outputToken.chainId,
});
}

// We guarantee input amount == output amount for sponsored flows
if (params.isEligibleForSponsorship) {
inputAmount = ConvertDecimals(
Expand Down
Loading