Skip to content

Commit 585a95a

Browse files
committed
feat(sdk-coin-avaxp): use passed delegationFeeRate
instead of the hard coded 2 percent fee SC-4226 TICKET: SC-4226
1 parent af1ce3c commit 585a95a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

modules/sdk-coin-avaxp/src/lib/permissionlessValidatorTxBuilder.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -526,7 +526,7 @@ export class PermissionlessValidatorTxBuilder extends TransactionBuilder {
526526

527527
// Shares 10,000 times percentage of reward taken from delegators
528528
// https://docs.avax.network/reference/avalanchego/p-chain/txn-format#unsigned-add-validator-tx
529-
const shares = new Int(1e4 * 2);
529+
const shares = new Int(1e4 * this._delegationFeeRate);
530530

531531
const addressMaps = [...this.transaction._fromAddresses]
532532
.sort((a, b) => avaxUtils.bytesCompare(a, b))

0 commit comments

Comments
 (0)