Code Monkey home page Code Monkey logo

Comments (4)

PatrickAlphaC avatar PatrickAlphaC commented on June 13, 2024

Hello! Thanks for making this issue. The get-stats script right now is hard coded to an address. You'll need to deploy your contracts and then change the address in the script to point to whoever you want to check the total user value for.

Have you run the migrations first?

yarn
truffle migrate --reset --network live
yarn start

Good question about the mapping. There is an object tokenPriceFeedMapping. You need to map the address of the token to the address of the price feed for that token in that object. For example, if you want to find the price of LINK in USD, you'd add the LINK token address for Kovan, and the LINK/USD price feed for kovan.

Does that clarify? I can add this information to the blog if that makes sense.

from chainlink_defi.

carbon-neutral avatar carbon-neutral commented on June 13, 2024

Thank you for your reply. I have currently deployed the contracts to Kovan and am using Yarn to test the dapp.

I will set the get-stats.js script to my token and see if I get a different result.

I will mess around with it some more and see if I can get things to work. I still don't have any idea as to why the issue-token.js doesn't return any data from the network. Any ideas?

from chainlink_defi.

PatrickAlphaC avatar PatrickAlphaC commented on June 13, 2024

Thank you for your reply. I have currently deployed the contracts to Kovan and am using Yarn to test the dapp.

I will set the get-stats.js script to my token and see if I get a different result.

I will mess around with it some more and see if I can get things to work. I still don't have any idea as to why the issue-token.js doesn't return any data from the network. Any ideas?

Hmm... You may have to post the exact error here. We will have to make sure you're connected to the network properly. Are you able to deploy your smart contracts on the kovan network?

from chainlink_defi.

PatrickAlphaC avatar PatrickAlphaC commented on June 13, 2024

Closing due to inactivity.

from chainlink_defi.

Related Issues (5)

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.