Coder Social home page Coder Social logo

Comments (8)

sslivkoff avatar sslivkoff commented on July 29, 2024 1

@DarkGhost7 looks nice. this would be a good feature

@detroitcoder looks like the most recent batch of yearn data has some null's in the TVL's. patched the yearn code to handle this here e6dedef . command should work with that patch

from checkthechain.

DarkGhost7 avatar DarkGhost7 commented on July 29, 2024 1

Thanks will fix

from checkthechain.

detroitcoder avatar detroitcoder commented on July 29, 2024

I also get an exception when invoking ctc yearn. Likely because of json parse error or something with the old api.

image

from checkthechain.

DarkGhost7 avatar DarkGhost7 commented on July 29, 2024

@DarkGhost7 looks nice. this would be a good feature

@detroitcoder looks like the most recent batch of yearn data has some null's in the TVL's. patched the yearn code to handle this here e6dedef . command should work with that patch

odd.. the api shouldn't have nulls in the tvl, humm do you know which one is giving this error?

from checkthechain.

sslivkoff avatar sslivkoff commented on July 29, 2024

@DarkGhost7 looks like 2 entries

(search for None not null because python)

yCRV-f

{'inception': 15568224, 'address': '0x61f46C65E403429266e8b569F23f70dD75d9BeE7', 'symbol': 'lp-yCRV', 'name': 'lp-yCRV 0.4.3', 'display_name': 'yCRV-f', 'icon': 'https://rawcdn.githack.com/yearn/yearn-assets/32b1cafa8ee1a3f83a29f7dfee8c0241c471697c/icons/multichain-tokens/1/0x61f46C65E403429266e8b569F23f70dD75d9BeE7/logo-128.png', 'token': {'name': 'Curve.fi Factory Plain Pool: yCRV', 'symbol': 'yCRV-f', 'address': '0x0309A528bBa0394dC4A2Ce59123C52E317A54604', 'decimals': 18, 'display_name': 'yCRV-f', 'icon': 'https://rawcdn.githack.com/yearn/yearn-assets/32b1cafa8ee1a3f83a29f7dfee8c0241c471697c/icons/multichain-tokens/1/0x0309A528bBa0394dC4A2Ce59123C52E317A54604/logo-128.png'}, 'tvl': {'total_assets': 0, 'price': 0, 'tvl': None}, 'apy': {'type': 'error', 'gross_apr': 0, 'net_apy': 0, 'fees': {'performance': 0, 'withdrawal': 0, 'management': None, 'keep_crv': None, 'cvx_keep_crv': None}, 'points': {'week_ago': 0, 'month_ago': 0, 'inception': 0}, 'composite': None}, 'strategies': [], 'endorsed': True, 'version': '0.4.3', 'decimals': 18, 'type': 'v2', 'emergency_shutdown': False, 'updated': 1664898517, 'migration': {'available': False, 'address': '0x61f46C65E403429266e8b569F23f70dD75d9BeE7'}}

yCRV

{'inception': 15568224, 'address': '0x8a0889d47f9Aa0Fac1cC718ba34E26b867437880', 'symbol': 'st-yCRV', 'name': 'st-yCRV 0.4.3', 'display_name': 'yCRV', 'icon': 'https://rawcdn.githack.com/yearn/yearn-assets/32b1cafa8ee1a3f83a29f7dfee8c0241c471697c/icons/multichain-tokens/1/0x8a0889d47f9Aa0Fac1cC718ba34E26b867437880/logo-128.png', 'token': {'name': 'Yearn CRV', 'symbol': 'yCRV', 'address': '0x4c1317326fD8EFDeBdBE5e1cd052010D97723bd6', 'decimals': 18, 'display_name': 'yCRV', 'icon': 'https://rawcdn.githack.com/yearn/yearn-assets/32b1cafa8ee1a3f83a29f7dfee8c0241c471697c/icons/multichain-tokens/1/0x4c1317326fD8EFDeBdBE5e1cd052010D97723bd6/logo-128.png'}, 'tvl': {'total_assets': 207599893043316296483, 'price': None, 'tvl': None}, 'apy': {'type': 'error', 'gross_apr': 0, 'net_apy': 0, 'fees': {'performance': 0, 'withdrawal': 0, 'management': None, 'keep_crv': None, 'cvx_keep_crv': None}, 'points': {'week_ago': 0, 'month_ago': 0, 'inception': 0}, 'composite': None}, 'strategies': [], 'endorsed': True, 'version': '0.4.3', 'decimals': 18, 'type': 'v2', 'emergency_shutdown': False, 'updated': 1664898518, 'migration': {'available': False, 'address': '0x8a0889d47f9Aa0Fac1cC718ba34E26b867437880'}}```

from checkthechain.

DarkGhost7 avatar DarkGhost7 commented on July 29, 2024

Should be fixed now

from checkthechain.

sslivkoff avatar sslivkoff commented on July 29, 2024

excellent 🙌

from checkthechain.

DarkGhost7 avatar DarkGhost7 commented on July 29, 2024

Any updates on this? Would be nice to support the new api.

from checkthechain.

Related Issues (20)

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.