Core
The core library underpins Storyhunt’s fundamental architecture and math.
Installation
npm install @storyhunt/sdk-coreimport { Token, Percent } from "@storyhunt/sdk-core";const tokenA = new Token(1516, "0xAddressA", 18, "SYMBOLA", "TokenA"); const tokenB = new Token(1516, "0xAddressB", 18, "SYMBOLB", "TokenB");export const ALLOWED_PRICE_IMPACT_HIGH = new Percent( JSBI.BigInt(500), JSBI.BigInt(10000) );
Resources
Last updated