Skip to content

Commit c644435

Browse files
committed
feat(bridging/src/providers/near-intents): adds referral to getQuote
1 parent e6dc29b commit c644435

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

packages/bridging/src/providers/near-intents/NearIntentsBridgeProvider.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,12 +26,13 @@ import type {
2626
ReceiverAccountBridgeProvider,
2727
} from '../../types'
2828

29+
export const NEAR_INTENTS_HOOK_DAPP_ID = `${HOOK_DAPP_BRIDGE_PROVIDER_PREFIX}/near-intents`
30+
export const REFERRAL = 'cow'
31+
2932
export interface NearIntentsQuoteResult extends BridgeQuoteResult {
3033
depositAddress: Hex
3134
}
3235

33-
export const NEAR_INTENTS_HOOK_DAPP_ID = `${HOOK_DAPP_BRIDGE_PROVIDER_PREFIX}/near-intents`
34-
3536
export interface NearIntentsBridgeProviderOptions {
3637
cowShedOptions?: CowShedSdkOptions
3738
}
@@ -132,6 +133,7 @@ export class NearIntentsBridgeProvider implements ReceiverAccountBridgeProvider<
132133
recipient: receiver || account,
133134
recipientType: QuoteRequest.recipientType.DESTINATION_CHAIN,
134135
deadline: calculateDeadline(validFor || 3600),
136+
referral: REFERRAL,
135137
})
136138

137139
const payoutRatio = Number(quote.amountOutUsd) / Number(quote.amountInUsd)

0 commit comments

Comments
 (0)