GithubHelp home page GithubHelp logo

yam-finance / synths-sdk Goto Github PK

View Code? Open in Web Editor NEW
5.0 8.0 2.0 4.07 MB

YAM UMA Synths SDK.

License: MIT License

TypeScript 79.96% Solidity 19.96% JavaScript 0.08%
yam finance degenerative defi ethereum blockchain sdk

synths-sdk's People

Contributors

dependabot[bot] avatar ethedev avatar snake-poison avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

synths-sdk's Issues

Update assets.json

Describe the feature request

  • Update assets.json with the new ustonks contracts.

SDK: Update readme

Describe the bug:
The readme seems to be a bit misleading, especially the code block for the sdk initialization.

SDK: Add charts graphql data call

  • Market price of Synth from DEX for range (yam-www white line on chart)
  • Marketcap from lsp
  • TVL from api.yam.finance/tvl
  • DEX pool liquidity
  • pool volume last 24h

Subgraph endpoint update required

Hey team,

We've noticed that you're referencing a subgraph deployed on The Graph's hosted service in this repository. Just a heads-up: after June 12th, hosted service subgraph endpoints will no longer be available as the offering is being deprecated.

If you are the subgraph owner or maintainer, it's time to upgrade your subgraph to the network. This ensures everything keeps running smoothly and you get access to all the latest features and improvements. Here is a quick guide with all the upgrade steps.

If you're not the subgraph owner or maintainer, check Graph Explorer to see if the subgraph development team has already upgraded to the network. If you don’t find an upgraded subgraph, a friendly nudge to the subgraph development team would be greatly appreciated—it's a quick process that benefits everyone. Here's the upgrade guide with all the necessary steps for the subgraph development team.

Once the subgraph is upgraded to the network, you can create an API key and updated query URL in Subgraph Studio then update this repository to query from the new endpoint, https://api.studio.thegraph.com/query/<ID>/<SUBGRAPH_NAME>/<VERSION>

Need more support or have more questions? Feel free to reach out to [email protected]. We're here to help!

Cheers,

Paka

Remove unused constant and console.log

Eslint shows an issue for the following line. @byterose As the author of this function, you see any reason why we shouldn't remove this?

@typescript-eslint/no-unused-vars

pairName,

Suggestion would be to replace that line with "," effectively ignoring that parameter during deconstruction.

I also propose removing the console statement:

console.log(priceIdentifier, collateralPerPair, timerAddress);

let me know what you think

Add type for every synth

Describe the feature request
As discussed with @ElmoArmy it would be cool to have a type for all synths. So a user can see what synths are actually available.

Add missing SDK methods and tests

Describe the feature request
Since the old functions used web3.js we still need to migrate a few methods to ethers.js and add the test for these methods

Pool / Incentivized Pool Interface update

Hm.. since we will only go with one pool for now it is okay. It might however be helpful if we have multiple pools but until then we already might have everything on-chain.

This just prompted me to think about how we plan on incentivizing pools by different amounts which wouldn't be , that will need to be included here. So I think you are onto something here with a pool type or at least an incentive weight.

Originally posted by @ElmoArmy in #88 (comment)

SDK: Add handling checksum for addresses

After reading from asset json and generally everywhere, convert addresses to what is needed according to the function that is using it, for subgraph lowercasing it is needed for example you can lower case the checksummed address before passing it to subgraph.

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.