Skip to content

Commit

Permalink
prover pool abi change
Browse files Browse the repository at this point in the history
  • Loading branch information
cyberhorsey committed Jul 25, 2023
1 parent 01a0ad0 commit ff0d8d9
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@
);
minCapacity = reqs.minCapacity;
minStakePerCapacity = reqs.minStakePerCapacity;
console.log('reqs', reqs);
amount = ethers.utils.formatUnits(minStakePerCapacity.toString(), 8);
capacity = reqs.minCapacity;
}
Expand Down
21 changes: 13 additions & 8 deletions packages/pos-dashboard/src/constants/abi/ProverPool.ts
Original file line number Diff line number Diff line change
Expand Up @@ -198,25 +198,25 @@ export default [
},
{
inputs: [],
name: 'MAX_CAPACITY_LOWER_BOUND',
name: 'MAX_NUM_PROVERS',
outputs: [
{
internalType: 'uint32',
internalType: 'uint256',
name: '',
type: 'uint32',
type: 'uint256',
},
],
stateMutability: 'view',
type: 'function',
},
{
inputs: [],
name: 'MAX_NUM_PROVERS',
name: 'MIN_CAPACITY',
outputs: [
{
internalType: 'uint256',
internalType: 'uint32',
name: '',
type: 'uint256',
type: 'uint32',
},
],
stateMutability: 'view',
Expand All @@ -237,7 +237,7 @@ export default [
},
{
inputs: [],
name: 'MIN_SLASH_AMOUNT',
name: 'MIN_STAKE_PER_CAPACITY',
outputs: [
{
internalType: 'uint64',
Expand All @@ -250,7 +250,7 @@ export default [
},
{
inputs: [],
name: 'MIN_STAKE_PER_CAPACITY',
name: 'SLASH_MULTIPLIER',
outputs: [
{
internalType: 'uint64',
Expand Down Expand Up @@ -625,6 +625,11 @@ export default [
name: 'addr',
type: 'address',
},
{
internalType: 'uint64',
name: 'proofReward',
type: 'uint64',
},
],
name: 'slashProver',
outputs: [],
Expand Down
2 changes: 1 addition & 1 deletion packages/pos-dashboard/src/utils/getProverRequirements.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ export const getProverRequirements = async (
);

const minStakePerCapacity = await contract.MIN_STAKE_PER_CAPACITY();
const minCapacity = await contract.MAX_CAPACITY_LOWER_BOUND();
const minCapacity = await contract.MIN_CAPACITY();

return { minStakePerCapacity, minCapacity };
};

0 comments on commit ff0d8d9

Please sign in to comment.