Skip to content

Commit 2dd09a7

Browse files
authored
Add additional notes on validateFeePayments (#67)
1 parent a75cfb6 commit 2dd09a7

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

pkg/code/server/grpc/transaction/v2/intent_handler.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2931,6 +2931,10 @@ func validateExchangeDataWithinIntent(ctx context.Context, data code_data.Provid
29312931

29322932
// Generically validates fee payments as much as possible, but won't cover any
29332933
// intent-specific nuances (eg. where the fee payment comes from)
2934+
//
2935+
// This assumes source and destination accounts interacting with fees and the
2936+
// remaining amount don't have minimum bucket size requirements. Intent validation
2937+
// logic is responsible for these checks and guarantees.
29342938
func validateFeePayments(
29352939
ctx context.Context,
29362940
data code_data.Provider,

0 commit comments

Comments
 (0)