Skip to content

Commit

Permalink
Add a bool field to allow fractional fee charged to sender or receiver.
Browse files Browse the repository at this point in the history
Signed-off-by: ljianghedera <[email protected]>
  • Loading branch information
ljianghedera committed Aug 4, 2021
1 parent bd8ec0a commit 833cb60
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/main/proto/CustomFees.proto
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ message FractionalFee {
Fraction fractional_amount = 1; // The fraction of the transferred units to assess as a fee
int64 minimum_amount = 2; // The minimum amount to assess
int64 maximum_amount = 3; // The maximum amount to assess (zero implies no maximum)
bool netOfTransfers = 4; // If true, assesses the fee to the sender, so the receiver gets the full amount from the token transfer list, and the sender is charged an additional fee; if false, the receiver does NOT get the full amount, but only what is left over after paying the fractional fee
}

/* A fixed number of units (hbar or token) to assess as a fee during a CryptoTransfer
Expand Down

0 comments on commit 833cb60

Please sign in to comment.