Skip to content
Open
Show file tree
Hide file tree
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
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
- added: `chooseCaip19Asset` EdgeProvider API for precise wallet selection using CAIP-19 identifiers
- added: Pass OS and app version details to core context for v2/coreRollup endpoint
- changed: Append chain names to token codes in RampCreateScene
- fixed: Simplex buy/sell success status detection

## 4.42.0 (staging)

Expand Down
10 changes: 8 additions & 2 deletions src/plugins/ramps/simplex/simplexRampPlugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -689,8 +689,14 @@ export const simplexRampPlugin: RampPluginFactory = (

const orderId = link.query.orderId ?? 'unknown'
const status = link.query.status?.replace('?', '')

switch (status) {
const isTransactionApproved = link.uri.includes(
'transaction-approved'
)
const effectiveStatus = isTransactionApproved
? 'success'
: status

switch (effectiveStatus) {
case 'success': {
onLogEvent('Buy_Success', {
conversionValues: {
Expand Down
Loading