From de906320ec5d4576b58791155b69367573b7e843 Mon Sep 17 00:00:00 2001 From: Lazy Nina <81658138+lazynina@users.noreply.github.com> Date: Tue, 17 Oct 2023 01:47:11 -0400 Subject: [PATCH] fix affiliateAddress for heroswap iframe in identity (#287) Co-authored-by: Lazy Nina <> --- src/app/get-deso/get-deso.component.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/app/get-deso/get-deso.component.ts b/src/app/get-deso/get-deso.component.ts index 98388649..e7d80ede 100644 --- a/src/app/get-deso/get-deso.component.ts +++ b/src/app/get-deso/get-deso.component.ts @@ -94,7 +94,11 @@ export class GetDesoComponent implements OnInit { '&destinationTickers=DESO', '&destinationTicker=DESO', `&destinationAddress=${this.publicKeyAdded || ''}`, // TODO: confirm publicKeyAdded is correct. - `&affiliateAddress=BC1YLgHhMFnUrzQRpZCpK7TDxVGoGnAk539JqpYWgJ8uW9R7zCCdGHK`, + `&affiliateAddress=${ + this.globalVars.network === Network.mainnet + ? 'BC1YLgHhMFnUrzQRpZCpK7TDxVGoGnAk539JqpYWgJ8uW9R7zCCdGHK' + : 'tBCKX1RURo8HRUcYVNrpYj1JZcY1yvWuhSi6NDfKXRudwQpDkAd8YC' + }`, `&now=${Date.now()}`, ].join('') );