Skip to content

Commit

Permalink
chore: banxa partner update (#2781)
Browse files Browse the repository at this point in the history
  • Loading branch information
stackchain authored Oct 16, 2023
1 parent 25fa976 commit 1af7c18
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions apps/wallet-mobile/src/TxHistory/ActionsBanner.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -44,13 +44,17 @@ export const ActionsBanner = ({disabled = false}: {disabled: boolean}) => {
const sandboxWallet = env.getString('BANXA_TEST_WALLET')
const isMainnet = wallet.networkId !== 300
const walletAddress = isMainnet ? wallet.externalAddresses[0] : sandboxWallet
const banxa = banxaModuleMaker({isProduction: isMainnet, partner: 'emurgo'})
const url = banxa.createReferralUrl({
const moduleOptions = {isProduction: isMainnet, partner: 'yoroi'} as const
const urlOptions = {
coinType: 'ADA',
fiatType: 'USD',
blockchain: 'ADA',
walletAddress,
})
} as const

const banxa = banxaModuleMaker(moduleOptions)
const url = banxa.createReferralUrl(urlOptions)

Linking.openURL(url.toString())
}

Expand Down

0 comments on commit 1af7c18

Please sign in to comment.