Skip to content
Merged
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
2 changes: 1 addition & 1 deletion ocp/integration/swap.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import (
// Swap is an integration that hooks into the swap worker
type Swap interface {
// OnSwapSubmitted allows for notification when the swap for when a swap is submitted
OnSwapSubmitted(ctx context.Context, owner *common.Account, fromMint, toMint *common.Account) error
OnSwapSubmitted(ctx context.Context, owner *common.Account, fromMint, toMint *common.Account, amount uint64) error

// OnSwapFinalized allows for notifications based on events processed by the swap worker
OnSwapFinalized(ctx context.Context, owner *common.Account, isBuy bool, mint *common.Account, currencyName string, region currency.Code, valueReceived float64) error
Expand Down
2 changes: 1 addition & 1 deletion ocp/rpc/transaction/stateless_swap.go
Original file line number Diff line number Diff line change
Expand Up @@ -351,7 +351,7 @@ func (s *transactionServer) handleStablecoinStatelessSwap(
// Section: Submission
//

err = s.swapIntegration.OnSwapSubmitted(ctx, owner, fromMint, toMint)
err = s.swapIntegration.OnSwapSubmitted(ctx, owner, fromMint, toMint, initiateStablecoinSwapReq.SwapAmount)
if err != nil {
log.With(zap.Error(err)).Warn("failed to notify user of swap processing")
}
Expand Down
Loading