Skip to content

Commit

Permalink
Position -> PositionLibrary
Browse files Browse the repository at this point in the history
  • Loading branch information
NoahZinsmeister committed Jan 10, 2022
1 parent e497881 commit 80f3395
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions src/utils/position.test.ts
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
import JSBI from 'jsbi'
import { PositionLibrary } from '.'
import { ZERO } from '../internalConstants'
import { Position } from './position'

describe('Position', () => {
describe('PositionLibrary', () => {
describe('#getTokensOwed', () => {
it('0', () => {
const [tokensOwed0, tokensOwed1] = Position.getTokensOwed(ZERO, ZERO, ZERO, ZERO, ZERO)
const [tokensOwed0, tokensOwed1] = PositionLibrary.getTokensOwed(ZERO, ZERO, ZERO, ZERO, ZERO)
expect(tokensOwed0).toEqual(ZERO)
expect(tokensOwed1).toEqual(ZERO)
})

it('non-0', () => {
const [tokensOwed0, tokensOwed1] = Position.getTokensOwed(
const [tokensOwed0, tokensOwed1] = PositionLibrary.getTokensOwed(
ZERO,
ZERO,
JSBI.BigInt(1),
Expand Down
2 changes: 1 addition & 1 deletion src/utils/position.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { subIn256 } from '.'

const Q128 = JSBI.exponentiate(JSBI.BigInt(2), JSBI.BigInt(128))

export abstract class Position {
export abstract class PositionLibrary {
/**
* Cannot be constructed.
*/
Expand Down

0 comments on commit 80f3395

Please sign in to comment.