{"_id":"@polymarket/amm-maths","_rev":"132-835c18531d0eda6dc4e155b23f381025","name":"@polymarket/amm-maths","dist-tags":{"latest":"0.3.0"},"versions":{"0.1.0":{"name":"@polymarket/amm-maths","version":"0.1.0","keywords":["blockchain","ethereum","typescript","conditional-tokens","amm","automatic-market-maker"],"license":"MIT","_id":"@polymarket/amm-maths@0.1.0","maintainers":[{"name":"tomfrench","email":"tom@tomfren.ch"},{"name":"aluce","email":"alexanderluce@gmail.com"},{"name":"raymondpulver","email":"ray@decentralizedcapital.com"},{"name":"gallodasballo","email":"valeranijr@gmail.com"}],"contributors":[{"url":"https://github.com/tomafrench","name":"Tom French"},{"url":"http://protofire.io","name":"Protofire"}],"dist":{"shasum":"607ae77f916f30abdf3b66bc8c77990dbc179e25","tarball":"https://registry.npmjs.org/@polymarket/amm-maths/-/amm-maths-0.1.0.tgz","fileCount":44,"integrity":"sha512-VPJSMg63LwZ23ctSuRPTgY6yHKbAdnv4c+8C/uUMwTmzoWASm/NEqMKjGwW+EUNdxyky6ue3Au+NNmgptmLWsw==","signatures":[{"sig":"MEYCIQCjYsAZyiR7Y/HWpuBj3hvi2ceg9cSdc5+h22rKuW6rmwIhAKobeST9JO8TkFz8VPJ/V26J4eYqcZK7TAG1WUUtGwNw","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":33941,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfvuTqCRA9TVsSAnZWagAAU3kP/39tUJBhzdwPcGsapAcJ\ntgBDSOpAbtLDIPG4DMByS43SUHR8fpY2StG3p8aKMTh3bIJ/uap8aYozf9QW\nP7ZPS7IwnXWnhM+nN9eC4MasytdV0adIMtOurb3Wcxgn84PotTyCJYbbZDyW\ntqJoe58k/v8NObwBBvW0r5BEbPiMKl5mxJL0gmGfm2lGbdHLy/mYUhmujGJL\nnuaGFVvmBWcS6Bz1wUUaoxDGPIS4cRXNNO0kPAUNmouETg0Snkc6TcFHPefC\nL1oWcNCEvzYyxQKhXL3f/hd7HxX6HahXX/2mIg74XP0KY7TqCpy/TBba7YGQ\nEU8D3u1rs24jFzfyNjK44z5/knsOPpzq/BlhV2iQbj0VKlV/ukQPm1HM+8RA\nsPBCZUdl2vNC1Ty2M3gkTQVIbrQWZoMCqRlhuNLycxGr5zK2SkIYLg7AWArg\njr3eQHjj96pjVCmsQ/CuJU8MR+Bz1AYUn8af06m+gAqDyFkZ2Lls0P5i1xzR\nNs2TmnYzAAUlC0XMHvO+35WozqcNSKWw3MQT7hDKlw+D8M16SJYPWkM+hDrm\nCms4hX4cYr2CdcndgFg3ETsndX2F5uioym8AudAunQ7mTsvDCIwNT5xhSKkd\nLOmd0P4vCtTMxvMnliN9xcjrbQpD8EoDQbSUesxJ71TV5xEL0050Hmwfmopk\nu55h\r\n=FKGa\r\n-----END PGP SIGNATURE-----\r\n"},"main":"lib/index.js","types":"lib/index.d.ts","engines":{"npm":">=5","node":">=8"},"scripts":{"lint":"eslint --config ./.eslintrc.js --ignore-path ./.eslintignore ./src/**/*","test":"jest","build":"tsc --project tsconfig.production.json","clean":"shx rm -rf ./lib","prepack":"yarn clean && yarn test && yarn build"},"_npmUser":{"name":"tomfrench","email":"tom@tomfren.ch"},"repository":{"url":"https://github.com/TokenUnion/amm-maths.git","type":"git"},"description":"Utility package to store common maths for interacting with Conditional Tokens AMMs","directories":{},"dependencies":{"big.js":"^6.0.2","lodash":"^4.17.20","mathjs":"^8.0.1","@fvictorio/newton-raphson-method":"^1.0.5"},"_hasShrinkwrap":false,"devDependencies":{"shx":"^0.3.2","jest":"^26.6.3","eslint":"6.x","ts-jest":"^26.4.4","prettier":"1.x","typescript":"^3.9.5","lint-staged":"^10.2.7","@types/big.js":"^6.0.0","@ethersproject/bignumber":"^5.0.8","@ethersproject/constants":"^5.0.5","eslint-config-airbnb-typescript-prettier":"^3.1.0"},"peerDependencies":{"@ethersproject/bignumber":"^5.0.8","@ethersproject/constants":"^5.0.5"},"_npmOperationalInternal":{"tmp":"tmp/amm-maths_0.1.0_1606345961764_0.7993282617772228","host":"s3://npm-registry-packages"}},"0.1.1":{"name":"@polymarket/amm-maths","version":"0.1.1","keywords":["blockchain","ethereum","typescript","conditional-tokens","amm","automatic-market-maker"],"license":"MIT","_id":"@polymarket/amm-maths@0.1.1","maintainers":[{"name":"esinger93457","email":"ethan@polymarket.com"},{"name":"cristiangpr","email":"cristiangp777@gmail.com"},{"name":"dylangolow","email":"dylangolow@gmail.com"},{"name":"tomfrench","email":"tom@tomfren.ch"}],"contributors":[{"url":"https://github.com/tomafrench","name":"Tom French"},{"url":"http://protofire.io","name":"Protofire"}],"homepage":"https://github.com/TokenUnion/amm-maths#readme","bugs":{"url":"https://github.com/TokenUnion/amm-maths/issues"},"dist":{"shasum":"ed5b969e1152ea677f8bf12dfaa98923d6d1cb7c","tarball":"https://registry.npmjs.org/@polymarket/amm-maths/-/amm-maths-0.1.1.tgz","fileCount":46,"integrity":"sha512-RDk8cr63MAYhJ2s+PT/UJgIG20Q/TODcdKtfCnw3fxIGZ169genzyxQMDKMixWQd3VMgAPltuNnJPpCjFPLb6Q==","signatures":[{"sig":"MEYCIQD3W3RcL3LuaGzcGhky6ho0b/dcdlTascyUsabusmY+uQIhAMdu0X2NQGGSzziTVHKXqlTpP3OPW0AMpjs/0FChfl25","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":39286,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgWQgcCRA9TVsSAnZWagAAT4AP/iVgWiaC8wutLJUbg+11\nSJeqdkaxE3q/xUMGrHa/Y5BMCogLFHkK2g0puT1A1NkV9e93wpGp1reglmpz\nZoEZlwvbre2P5ToB/9/ioB0NCJvUX6jJrI/Qa+jInRXvTQJP6FB5C/ClMUeK\nU+hG0f253DzvnosouHB6X6FZwtmdNSeaUwkN4Tgf1bsssfu4q3TzmUkJMBro\nKMWNIX2sbwAbwm/J5vCnQta2LEH3Z909/6Ts1Or6VQ4GKt2oEzv0fgmTpwGX\n9hfUzVEqfMHkXrIKNbR7KIu2tlO4RzzG7GzSnd9KhAizJSkTFvMtw2Fl25eQ\nixG26SQHGt1jS5YFytWCW0IXw4JI6scneMlkpTOUQxIoZQp/StDbtL4Mwf0w\nkFsV5cSA07+Kx6fmQ2vFOeNSKSn7Ap1lzsk+5UtgwFNqErB73F+fvPV/YGnj\nk3uqYcW3juIzwUy6rBV4yCAKMykwKcoSZVjhGlhOUSKfS3CtcyxGxMvk0j4n\n5MI1A/jaL7+USIKHhmvuvly8TRfbFhFqpIfAtYR8gJyfG/sWzfB8wNHo0Vyv\noL4mq7g0W5D5wt0+Za1iq3+ZhvfNXMUEiwIS6gwr3tpxf3KfScgxv5Lj9Prc\nRMTpa4+72fmmxAaKaFbwOyJYZweZ9/b9X6viaczVd9nqAScWY3p4oT3l6M8w\nTkvJ\r\n=f3St\r\n-----END PGP SIGNATURE-----\r\n"},"main":"lib/index.js","types":"lib/index.d.ts","engines":{"npm":">=5","node":">=8"},"gitHead":"ac16a35e647086164692732c8b8a1bfb3ba79d36","scripts":{"lint":"eslint --config ./.eslintrc.js --ignore-path ./.eslintignore ./src/**/*.ts","test":"jest","build":"tsc --project tsconfig.production.json","clean":"shx rm -rf ./lib","prepack":"yarn clean && yarn test && yarn build"},"_npmUser":{"name":"dylangolow","email":"dylangolow@gmail.com"},"repository":{"url":"git+https://github.com/TokenUnion/amm-maths.git","type":"git"},"_npmVersion":"6.14.6","description":"Utility package to store common maths for interacting with Conditional Tokens AMMs","directories":{},"_nodeVersion":"12.18.3","dependencies":{"big.js":"^6.0.2","lodash":"^4.17.20","mathjs":"^8.0.1","@fvictorio/newton-raphson-method":"^1.0.5"},"_hasShrinkwrap":false,"devDependencies":{"shx":"^0.3.2","jest":"^26.6.3","eslint":"6.x","ts-jest":"^26.4.4","prettier":"1.x","typescript":"^3.9.5","@types/jest":"^26.0.20","lint-staged":"^10.2.7","@types/big.js":"^6.0.0","@ethersproject/bignumber":"^5.0.8","@ethersproject/constants":"^5.0.5","eslint-config-airbnb-base-typescript-prettier":"^4.1.0"},"peerDependencies":{"@ethersproject/bignumber":"^5.0.8","@ethersproject/constants":"^5.0.5"},"_npmOperationalInternal":{"tmp":"tmp/amm-maths_0.1.1_1616447516170_0.07335824122828383","host":"s3://npm-registry-packages"}},"0.2.0":{"name":"@polymarket/amm-maths","version":"0.2.0","keywords":["blockchain","ethereum","typescript","conditional-tokens","amm","automatic-market-maker"],"license":"MIT","_id":"@polymarket/amm-maths@0.2.0","maintainers":[{"name":"esinger93457","email":"ethan@polymarket.com"},{"name":"cristiangpr","email":"cristiangp777@gmail.com"},{"name":"dylangolow","email":"dylangolow@gmail.com"},{"name":"tomfrench","email":"tom@tomfren.ch"}],"contributors":[{"url":"https://github.com/tomafrench","name":"Tom French"},{"url":"http://protofire.io","name":"Protofire"}],"dist":{"shasum":"8dd9e2cc7be8f522b17831e5aaf9e1f46781e81f","tarball":"https://registry.npmjs.org/@polymarket/amm-maths/-/amm-maths-0.2.0.tgz","fileCount":52,"integrity":"sha512-PJwdC7dGEOuvcpTJA/QqCYmhPbIq7lRHeXqnHuN12vQAMYcv5hqmIkeOZzNpVgv75/IiOX2COIPLcbexUyDjsA==","signatures":[{"sig":"MEUCICieuceXcLEYwAclN++9yru4NfPavgVi91Su3RPjTDXUAiEA7LF313QtWTfyNuD99uFQKNnAssMZxX8KwWetB+QYqR4=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":39286,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgWQoQCRA9TVsSAnZWagAAt+kP/RI5WNCpzfETb2k4zmHf\nqVzo6C9urwQFLvBfqkrFPhvnbUMe+opqUODpl3S5AhyDVxhFIVMWv3Qacen8\nOBGGgGhUYDlHdX5Jt92uSNgp3lsQ6p8EBADayT7hLPMtoZp4xRAtctoylVRp\nc3+YGxCpg+ZhdRRbB6i62r21tia2wBcbtmxeBdTXgqaddIUbQa2FNuTO5n2I\nwi54FnnhBREK5xY0ubVIIdMhfISBxXFHek3olaTiznInF/CT17wNTRhLJ68/\nvzUVAysqSGq16t3sd62EkP46rSjjSrQN3p8G/3zAfWkuIlGsCDkf4l780qqB\nmIULx8W8zIHhJOkQvzNk+il6lI2WISbspMW7ouYHewSLNnEXKb+awokXokbf\npkb3M0CfP4mASw4jBf4pVMyqGGcMbTUW/4r3IXcMa4NoXq4dIUZ/yfF5zbgg\nBFTv6BPzOt3xXPzPEM2k/5/v9SKsxC7+TYPrkxC4jRIMrLi5pK8dpFMuoUCd\nK1iH7a/+PxaG1tRCZGO6xIMVXrmofusQ7GUn97t73XS7IgxPcowoCyRi9dmo\nwfRpDHnxynETqU3CBctQkR6Oysv+/B496X9RPDZINpPGY6LmxOSgoHSrx2E8\nkKFtsdsOV/y5aGphXU85oPpWd2gYBgAiKBIKotH55QkxIXakcqMqC1tBtc3S\nrP4L\r\n=YQdF\r\n-----END PGP SIGNATURE-----\r\n"},"main":"lib/index.js","types":"lib/index.d.ts","engines":{"npm":">=5","node":">=8"},"scripts":{"lint":"eslint --config ./.eslintrc.js --ignore-path ./.eslintignore ./src/**/*.ts","test":"jest","build":"tsc --project tsconfig.production.json","clean":"shx rm -rf ./lib","prepack":"yarn clean && yarn test && yarn build"},"_npmUser":{"name":"tomfrench","email":"tom@tomfren.ch"},"repository":{"url":"https://github.com/TokenUnion/amm-maths.git","type":"git"},"description":"Utility package to store common maths for interacting with Conditional Tokens AMMs","directories":{},"dependencies":{"big.js":"^6.0.2","lodash":"^4.17.20","mathjs":"^8.0.1","@fvictorio/newton-raphson-method":"^1.0.5"},"_hasShrinkwrap":false,"devDependencies":{"shx":"^0.3.2","jest":"^26.6.3","eslint":"6.x","ts-jest":"^26.4.4","prettier":"1.x","typescript":"^3.9.5","@types/jest":"^26.0.20","lint-staged":"^10.2.7","@types/big.js":"^6.0.0","@ethersproject/bignumber":"^5.0.8","@ethersproject/constants":"^5.0.5","eslint-config-airbnb-base-typescript-prettier":"^4.1.0"},"peerDependencies":{"@ethersproject/bignumber":"^5.0.8","@ethersproject/constants":"^5.0.5"},"_npmOperationalInternal":{"tmp":"tmp/amm-maths_0.2.0_1616448015835_0.1605431105839843","host":"s3://npm-registry-packages"}},"0.3.0":{"name":"@polymarket/amm-maths","version":"0.3.0","keywords":["blockchain","ethereum","typescript","conditional-tokens","amm","automatic-market-maker"],"license":"MIT","_id":"@polymarket/amm-maths@0.3.0","maintainers":[{"name":"esinger93457","email":"ethan@polymarket.com"},{"name":"cristiangpr","email":"cristiangp777@gmail.com"},{"name":"dylangolow","email":"dylangolow@gmail.com"},{"name":"tomfrench","email":"tom@tomfren.ch"}],"contributors":[{"url":"https://github.com/tomafrench","name":"Tom French"},{"url":"http://protofire.io","name":"Protofire"}],"dist":{"shasum":"a7cb48795a04afb9d47225877b73a61b1d276495","tarball":"https://registry.npmjs.org/@polymarket/amm-maths/-/amm-maths-0.3.0.tgz","fileCount":48,"integrity":"sha512-tLxWzHKrov9yLRp+YL5M3D0h8tTpWQDbGB6WlUAmkdnDH9SryZT9lVE42MZ2O1uraYiQaM76WRPZtY51sPy/bg==","signatures":[{"sig":"MEQCIGAuVaM3j2drdFlQbWXpM4S2mVINp5bbM9GvGiUTFuoHAiAfI+zpy/mHnTWN1Ex+LcErZRloJKpoM8UMoEjSHIKFVg==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":39534,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgW4irCRA9TVsSAnZWagAAoSgQAI2mfUj8E70xEu4uhyqH\nCFQ7eV432e16DhTEwDjWOLYh81RpfSU4daVZ1zy1opVCNXGMPsYh+s9Co33o\n3bFrkhnB678AVp3yWQLaiAdtUV6BA2kvEq+hafOjg6v/1U6LP4Pom7umIMdZ\nHfnC9syyLKzpl9UpbSk9lk15uDOAv1/qLPFBOv0eeHK+zRznWwJyBaB8dU+5\nnAOfgKHTHwl0VrnVeuhzrIC89M+hDcj9iiiFUwzO5b6C9PWWzNoUndsdoNx9\n+jb/dnjmrV9MqROESJt+/alH+y0tGY5ctr6SiaEbp0fhqpRmeJdRAraHUyFw\nP+U2Z5aRfyeNEfHOUVwJcTSIk0cG5xn18mArKV5bWUgngaoCupxzs3AnhQGR\nYAZFdF7fJn5E6RlBrHiF/swqz6JDI+xrwPhtH91kvmYfq2PcC9yrpYvFlwja\n3TaZAlh3bnrOMddYhOllvDAhdLiRPw9dUN0g+I1ZOwKGhJOiEn+QuEAfP7PV\nDOpGYhvlOxgvL6K+/BWeuxUh1ot5Jpb00NTGsU3tEHyqtSWywuctlGBMahjM\ntjA3NWLS2NkKrCX9x0ZrHG3JzPetcQVVz7LYgWgCy/xSEm/kDh/7MZ/JsDmd\nOaf6DCqXaWXuTpLd6DBDbc96rObV+07gCG5qUicUki9IQFg0zb/4Ts+TXd5T\nXW2F\r\n=ZLUI\r\n-----END PGP SIGNATURE-----\r\n"},"main":"lib/index.js","types":"lib/index.d.ts","engines":{"npm":">=5","node":">=8"},"scripts":{"lint":"eslint --config ./.eslintrc.js --ignore-path ./.eslintignore ./src/**/*.ts","test":"jest","build":"tsc --project tsconfig.production.json","clean":"shx rm -rf ./lib","prepack":"yarn clean && yarn test && yarn build"},"_npmUser":{"name":"tomfrench","email":"tom@tomfren.ch"},"repository":{"url":"https://github.com/TokenUnion/amm-maths.git","type":"git"},"description":"Utility package to store common maths for interacting with Conditional Tokens AMMs","directories":{},"dependencies":{"big.js":"^6.0.2","lodash":"^4.17.20","mathjs":"^8.0.1","@fvictorio/newton-raphson-method":"^1.0.5"},"_hasShrinkwrap":false,"devDependencies":{"shx":"^0.3.2","jest":"^26.6.3","eslint":"6.x","ts-jest":"^26.4.4","prettier":"1.x","typescript":"^3.9.5","@types/jest":"^26.0.20","lint-staged":"^10.2.7","@types/big.js":"^6.0.0","@ethersproject/bignumber":"^5.0.8","@ethersproject/constants":"^5.0.5","eslint-config-airbnb-base-typescript-prettier":"^4.1.0"},"peerDependencies":{"@ethersproject/bignumber":"^5.0.8","@ethersproject/constants":"^5.0.5"},"_npmOperationalInternal":{"tmp":"tmp/amm-maths_0.3.0_1616611498976_0.8941846981605455","host":"s3://npm-registry-packages"}}},"time":{"created":"2020-11-25T23:12:41.764Z","modified":"2026-09-29T19:47:46.279Z","0.1.0":"2020-11-25T23:12:41.933Z","0.1.1":"2021-03-22T21:11:56.338Z","0.2.0":"2021-03-22T21:20:15.968Z","0.2.1":"2021-03-22T21:34:06.994Z","0.2.2":"2021-03-22T22:33:48.307Z","0.3.0":"2021-03-24T18:44:59.102Z"},"license":"MIT","keywords":["blockchain","ethereum","typescript","conditional-tokens","amm","automatic-market-maker"],"repository":{"url":"https://github.com/TokenUnion/amm-maths.git","type":"git"},"description":"Utility package to store common maths for interacting with Conditional Tokens AMMs","contributors":[{"url":"https://github.com/tomafrench","name":"Tom French"},{"url":"http://protofire.io","name":"Protofire"}],"maintainers":[{"email":"bapi@polymarket.com","name":"bapi-poly"},{"email":"agupta@polymarket.com","name":"ad1-poly"},{"email":"prayuj@polymarket.com","name":"prayujt"},{"email":"ethan@polymarket.com","name":"esinger93457"},{"email":"jon@polymarket.com","name":"jonamen"},{"email":"sheldontaylor.7@gmail.com","name":"sherrbss"},{"email":"arun@polymarket.com","name":"devstardude-poly"},{"email":"julian@polymarket.com","name":"juliankoh"},{"email":"neesh@polymarket.com","name":"neesh-polymarket"},{"email":"carlos@polymarket.com","name":"carlos-poly"},{"email":"william@polymarket.com","name":"poly-william"},{"email":"kurush@polymarket.com","name":"kurushdubash-poly"},{"email":"kevin.costello@polymarket.com","name":"elvisc0stell0"},{"email":"matthew.wilson@polymarket.com","name":"mwilson-poly"},{"email":"srdjan.rakic@polymarket.com","name":"srdjan.rakic"},{"email":"christian.conforti@polymarket.com","name":"christian-poly"},{"email":"balint@polymarket.com","name":"balintpoly"},{"email":"pradeep@polymarket.com","name":"pradeep-poly"},{"email":"zannis.kalampoukis@polymarket.com","name":"zannis-poly"},{"email":"shrenuj@polymarket.com","name":"shrenuj-polymarket"},{"email":"danny.nam@polymarket.com","name":"danny.nam"},{"email":"cesare@polymarket.com","name":"cesare-poly"},{"email":"mohamed@polymarket.com","name":"mohamed-polymarket"},{"email":"ash.bhimasani@polymarket.com","name":"ash-polymarket"},{"email":"ruben.sospedra@polymarket.com","name":"sospedra-poly"},{"email":"bartek.legiec@polymarket.com","name":"bartek-poly"},{"email":"joe@polymarket.com","name":"polyjsmth"},{"email":"chaz@polymarket.com","name":"chaz-polymarket"},{"email":"khaidar.kairbek@polymarket.com","name":"khaidar-poly"},{"email":"npm@legate.me","name":"legate"},{"email":"george.visconti@polymarket.com","name":"georgevisconti"},{"email":"ryan.hall@polymarket.com","name":"ryanrhall-pm"},{"email":"benedek.gobolos@polymarket.com","name":"gbls.bndk.poly"},{"email":"worktrial1@polymarket.com","name":"work-trial"},{"email":"franky@polymarket.com","name":"franky-poly"},{"email":"aswin.nair@polymarket.com","name":"aswinnairpm"},{"email":"ivan+polymarket@3perf.com","name":"iamakulov-poly"},{"email":"suhail@polymarket.com","name":"suhail-polymarket"},{"email":"ethan.goldberg@polymarket.com","name":"ethangold3"},{"email":"antonio.simeonov@polymarket.com","name":"tonyatpolymarket"},{"email":"siddharth.sharma@polymarket.com","name":"sidd-poly"},{"email":"jason.fieldman@polymarket.com","name":"jason.fieldman.poly"},{"email":"steven@polymarket.com","name":"itsstevenwal"},{"email":"anthony.khaiat@polymarket.com","name":"polykha"},{"email":"shivkanth.bagavathy@polymarket.com","name":"shivkanthb-poly"},{"email":"gyula.halmos@polymarket.com","name":"gyula-poly"},{"email":"vedant.patel@polymarket.com","name":"vedantpatel101"},{"email":"samuel.davies@polymarket.com","name":"samueldaviespolymarket"},{"email":"matheus.silva@polymarket.com","name":"matt-poly"},{"email":"marco.cornacchia@polymarket.com","name":"marco-poly"},{"email":"oliver.cai@polymarket.com","name":"oliver-cai-gh"},{"email":"louis@polymarket.com","name":"louisferraropm"},{"email":"dan@polymarket.com","name":"dthomas-poly"},{"email":"daniel.im@polymarket.com","name":"daniel.im"},{"email":"jacob.tieshue@polymarket.com","name":"jacob.tieshue"},{"email":"troy.nguyen@polymarket.com","name":"tnguyenpolymarket"},{"email":"alice.zhao@polymarket.com","name":"azpoly"},{"email":"lucille@polymarket.com","name":"lucilleh"},{"email":"chris.scott+npm@polymarket.com","name":"chris.scott.pm"},{"email":"graydon.driver@polymarket.com","name":"graydondriver"},{"email":"jeshua.sharkey@polymarket.com","name":"jeshfrompoly"},{"email":"nickrice@polymarket.com","name":"nickrice"},{"email":"viktar.naumik@polymarket.com","name":"vicnaum_poly"},{"email":"namik.mesic@polymarket.com","name":"namikmesic-hub"},{"email":"rob@polymarket.com","name":"rob-poly"},{"email":"fedner@polymarket.com","name":"fednerj"},{"email":"kevin+2@polymarket.com","name":"kshaynpm2"},{"email":"martin@polymarket.com","name":"martin-poly"},{"email":"harley@polymarket.com","name":"harley-poly"}],"readme":"# Polymarket AMM Maths\n\nThis package contains a number of functions to calculate the effects of interactions with the [Conditional Tokens Market Makers](https://github.com/TokenUnion/conditional-tokens-market-makers) used by Polymarket.\n\n\n**Note:** A number of utility functions from https://github.com/protofire/omen-exchange have been included in this package which were then adapted where necessary.\n\n## Running tests\n\nTo run the tests, follow these steps. You must have at least node v10 and [yarn](https://yarnpkg.com/) installed.\n\nFirst clone the repository:\n\n```sh\ngit clone https://github.com/TokenUnion/amm-maths.git\n```\n\nMove into the uniswap-sdk working directory\n\n```sh\ncd amm-maths/\n```\n\nInstall dependencies\n\n```sh\nyarn install\n```\n\nRun tests\n\n```sh\nyarn test\n```\n\nYou should see output like the following:\n\n```sh\nyarn run v1.22.4\n$ jest\n PASS  test/trading.test.ts\n PASS  test/liquidity.test.ts\n PASS  test/price.test.ts\n\nTest Suites: 3 passed, 3 total\nTests:       64 passed, 64 total\nSnapshots:   0 total\nTime:        1.05 s\nRan all test suites.\nDone in 1.64s.\n```\n","readmeFilename":"README.md"}