Skip to content

Commit

Permalink
Merge pull request #164 from neptune-mutual-blue/fix/token-threshold
Browse files Browse the repository at this point in the history
Fixes Issue #148 - Incorrect NPM threshold
  • Loading branch information
heyaibi authored Sep 6, 2022
2 parents 90744f4 + 78fafa7 commit be8c00b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions contracts/libraries/ProtoUtilV1.sol
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@ library ProtoUtilV1 {
bytes32 public constant KEY_INTENTIONALLY_EMPTY = 0;
bytes32 public constant PRODUCT_KEY_INTENTIONALLY_EMPTY = 0;
uint256 public constant MULTIPLIER = 10_000;
uint256 public constant MAX_LIQUIDITY = 10_000_000_000;
uint256 public constant MAX_PROPOSAL_AMOUNT = 10_000_000_000;
uint256 public constant MAX_NPM_STAKE = 10_000_000_000;
uint256 public constant MAX_LIQUIDITY = 10_000_000;
uint256 public constant MAX_PROPOSAL_AMOUNT = 10_000_000;
uint256 public constant MAX_NPM_STAKE = 10_000_000;
uint256 public constant NPM_PRECISION = 1 ether;
uint256 public constant CXTOKEN_PRECISION = 1 ether;
uint256 public constant POD_PRECISION = 1 ether;
Expand Down
4 changes: 2 additions & 2 deletions test/stories/1. policy.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ describe('Policy Purchase Stories', () => {
// console.info(`https://ipfs.infura.io/ipfs/${ipfs.toIPFShash(info)}`)

const initialReassuranceAmount = helper.ether(1_000_000, PRECISION)
const initialLiquidity = helper.ether(24_000_000, PRECISION)
const initialLiquidity = helper.ether(4_000_000, PRECISION)
const stakeWithFee = helper.ether(10_000)
const minReportingStake = helper.ether(250)
const reportingPeriod = 7 * DAYS
Expand Down Expand Up @@ -57,7 +57,7 @@ describe('Policy Purchase Stories', () => {
const result = await contracts.policy.getCoverPoolSummary(coverKey, helper.emptyBytes32)
const [totalAmountInPool, totalCommitment, reassurance, reassuranceWeight, count, leverage, efficiency] = result

totalAmountInPool.toString().should.equal(helper.ether(24_000_000, PRECISION))
totalAmountInPool.toString().should.equal(helper.ether(4_000_000, PRECISION))
totalCommitment.toString().should.equal('0')
reassurance.toString().should.equal(helper.ether(1_000_000, PRECISION))
reassuranceWeight.toString().should.equal(helper.percentage(100))
Expand Down

0 comments on commit be8c00b

Please sign in to comment.