Skip to content

Commit

Permalink
feat(web): add price impact events (#83)
Browse files Browse the repository at this point in the history
  • Loading branch information
jperler authored Sep 24, 2024
1 parent 9f917a9 commit 93788fe
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/swap/events.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ export enum SwapEventName {
SWAP_FIRST_SIGNATURE_REQUESTED = 'Swap First Signature Requested',
SWAP_MAX_TOKEN_AMOUNT_SELECTED = 'Swap Max Token Amount Selected',
SWAP_MODIFIED_IN_WALLET = 'Swap Modified in Wallet',
SWAP_PRICE_IMPACT_ACKNOWLEDGED = 'Swap Price Impact Acknowledged',
SWAP_PRICE_UPDATE_ACKNOWLEDGED = 'Swap Price Update Acknowledged',
SWAP_QUOTE_FETCH = 'Swap Quote Fetch',
SWAP_QUOTE_RECEIVED = 'Swap Quote Received',
Expand Down
5 changes: 5 additions & 0 deletions src/swap/properties.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
export enum SwapPriceImpactUserResponse {
ACCEPTED = 'Accepted',
REJECTED = 'Rejected',
}

export enum SwapPriceUpdateUserResponse {
ACCEPTED = 'Accepted',
REJECTED = 'Rejected',
Expand Down

0 comments on commit 93788fe

Please sign in to comment.