Skip to content

Commit

Permalink
add source to swap (MystenLabs#19797)
Browse files Browse the repository at this point in the history
## Description 

Add source for swap wallet address:
https://github.com/MystenLabs/apps-backend/blob/main/src/routes/legacy/swap.ts#L85
![Screenshot 2024-10-10 at 11 02
57 AM](https://github.com/user-attachments/assets/977c2eb8-7109-47c1-8fd8-55521ca58e26)



## Test plan 

How did you test the new or updated feature?

---

## Release notes

Check each box that your changes affect. If none of the boxes relate to
your changes, release notes aren't required.

For each box you select, include information after the relevant heading
that describes the impact of your changes that a user might notice and
any actions they must take to implement updates.

- [ ] Protocol: 
- [ ] Nodes (Validators and Full nodes): 
- [ ] Indexer: 
- [ ] JSON-RPC: 
- [ ] GraphQL: 
- [ ] CLI: 
- [ ] Rust SDK:
- [ ] REST API:
  • Loading branch information
plam-ml authored Oct 10, 2024
1 parent 4d63e50 commit 27b07b7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions apps/wallet/src/ui/app/pages/swap/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -183,6 +183,7 @@ export function SwapPage() {
amount: parsed.toString(),
slippage: Number(allowedMaxSlippagePercentage),
enabled: isFormValid && parsed > 0n && !!fromCoinType && !!toCoinType,
source: 'sui-wallet',
});

const swapData = useMemo(() => {
Expand Down
1 change: 1 addition & 0 deletions apps/wallet/src/ui/app/pages/swap/useSwapTransaction.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ export type SwapRequest = {
amount: string;
fromType?: string;
slippage: number;
source: string;
sender?: string;
toType?: string;
};
Expand Down

0 comments on commit 27b07b7

Please sign in to comment.