Skip to content

Commit

Permalink
Reapply "delegation: changes default commission for node creation"
Browse files Browse the repository at this point in the history
This reverts commit 7935716.
  • Loading branch information
rattrap committed Oct 14, 2024
1 parent 7935716 commit 1d50215
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ const getProviders = () => [
ethereum.testnetWallet,
delegation.testnetDelegation,
delegation.testnetOwnNodes,
10000,
);
},
inject: [delegationConfig.KEY, ethereumConfig.KEY],
Expand All @@ -37,6 +38,7 @@ const getProviders = () => [
ethereum.mainnetWallet,
delegation.minDelegation,
[],
0,
);
},
inject: [delegationConfig.KEY, ethereumConfig.KEY],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ export class BlockchainService {
public defaultDelegationAmount: ethers.BigNumber,
private ownNodes: string[],
private txCount = 0,
private defaultCommission = 0,
) {
this.provider = new ethers.providers.JsonRpcProvider({
url: endpoint,
Expand Down Expand Up @@ -41,12 +42,14 @@ export class BlockchainService {
walletKey: string,
defaultDelegationAmount: ethers.BigNumber,
ownNodes: string[],
defaultCommission: number,
) {
return new BlockchainService(
endpoint,
walletKey,
defaultDelegationAmount,
ownNodes,
defaultCommission,
);
}

Expand Down Expand Up @@ -83,7 +86,7 @@ export class BlockchainService {
address,
addressProof,
vrfKey,
0,
this.defaultCommission,
'',
'',
{
Expand Down

0 comments on commit 1d50215

Please sign in to comment.