Skip to content

Commit

Permalink
Remove bad tests
Browse files Browse the repository at this point in the history
  • Loading branch information
IanPhilips committed Sep 30, 2024
1 parent 07bce24 commit 31dc51f
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions common/src/calculate-cpmm.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -73,18 +73,6 @@ describe('CPMM Calculations', () => {
collectedFees: noFees,
}

it('should update pool correctly after YES bet', () => {
const { newPool } = calculateCpmmPurchase(initialState, 5, 'YES')
expect(newPool.YES).toBeCloseTo(95.3882, 2)
expect(newPool.NO).toBeCloseTo(104.8348, 2)
})

it('should update pool correctly after NO bet', () => {
const { newPool } = calculateCpmmPurchase(initialState, 5, 'NO')
expect(newPool.YES).toBeCloseTo(104.8348, 2)
expect(newPool.NO).toBeCloseTo(95.3882, 2)
})

it('should maintain constant product after bet', () => {
const { newPool } = calculateCpmmPurchase(initialState, 10, 'YES')
const initialProduct = initialState.pool.YES * initialState.pool.NO
Expand Down

0 comments on commit 31dc51f

Please sign in to comment.