Skip to content
Merged
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
11 changes: 9 additions & 2 deletions packages/common/src/store/purchase-content/sagas.ts
Original file line numberDiff line numberDiff line change
Expand Up@@ -917,6 +917,11 @@ function* purchaseWithAnything({
const sdk = yield* call(audiusSdk)
const audiusBackendInstance = yield* getContext('audiusBackendInstance')
const connection = yield* call(getSolanaConnection, audiusBackendInstance)
const getFeatureEnabled = yield* getContext('getFeatureEnabled')
const isNetworkCutEnabled = yield* call(
getFeatureEnabled,
FeatureFlags.NETWORK_CUT_ENABLED
)

// Get the USDC user bank
const usdcUserBank = yield* call(getUSDCUserBank)
Expand DownExpand Up@@ -1092,7 +1097,8 @@ function* purchaseWithAnything({
userId: encodeHashId(purchaserUserId),
trackId: encodeHashId(contentId),
price: price / 100.0,
extraAmount: extraAmount ? extraAmount / 100.0 : undefined
extraAmount: extraAmount ? extraAmount / 100.0 : undefined,
includeNetworkCut: isNetworkCutEnabled

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

also below in the album flow!

Copy link
Copy Markdown
ContributorAuthor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ty!

})
message.instructions.push(routeInstruction, memoInstruction)
if (locationMemoInstruction) {
Expand All@@ -1109,7 +1115,8 @@ function* purchaseWithAnything({
userId: encodeHashId(purchaserUserId),
albumId: encodeHashId(contentId),
price: price / 100.0,
extraAmount: extraAmount ? extraAmount / 100.0 : undefined
extraAmount: extraAmount ? extraAmount / 100.0 : undefined,
includeNetworkCut: isNetworkCutEnabled
})
message.instructions.push(routeInstruction, memoInstruction)
if (locationMemoInstruction) {
Expand Down