Coder Social home page Coder Social logo

sdk's People

Contributors

benwolski avatar busimus avatar mister-meeseeks avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

sdk's Issues

Add parseEthersReceipt function

Expected Behavior

SDK can parse a receipt from Ethers.js and return formatted data about a CrocSwap transaction

Actual Behavior

SDK can only parse a receipt from Web3.js

concDepositSkew() returns NaN when price = 1

Expected Behavior

I think concDepositSkew should equal 1 when price equals 1

image

Actual Behavior

concDepositSkew() returns NaN when price = 1

Steps to Reproduce the Problem

Specifications

  • Version:
  • Platform:

Enable Edits for Positions

Reposition Mode should have an unbalanced mode, that operates similar to Advanced mode in the Range component.

Steps to complete this:

New SDK functions
Connect logic to chart to allow similar draggers
Mock up new unbalanced mode Reposition component in Figma

BigNum overflow in scaleQty method

Expected Behavior

should be able to pass in a quantity of 1 with decimals = 18 and not have bignum overflow

Actual Behavior

Steps to Reproduce the Problem

Specifications

  • Version:
  • Platform:

[Enhancement] Allow lpConduit to be set on liquidity mint/burn actions

Expected Behavior

An optional value lpConduit can be passed in the CrocLpOpts opts param of LP functions (mintAmbient, mintConc, burnAmbient, etc.). lpConduit is already a defined parameter at the smart contract level, but functionality is not exposed to the SDK.

Actual Behavior

Currently, lpConduit is hardcoded as AddressZero prior to encoding, so an LP conduit contract address can never be utilized.

Steps to Reproduce the Problem

  1. await croc.poolEth(USDC).mintAmbientQuote(50, [0.0001, 0.001], { lpConduit: SOME_LP_CONDUIT_ADDRESS })
  2. Check if USDC/ETH LP tokens are minted and sent to caller address

Specifications

  • Version: v0.2.75
  • Platform:

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.