Inspiration
Sometimes contracts use multiple tokens and need price feed data for each of them depending on which one is being used.
What it does
Easy to use library that gets the price feed data of any compatible token to the set decimal, as well as, USD to Wei price conversion.
How we built it
Built in remix and transfered to hardhat.
Challenges we ran into
This error:
TypeError: Index range access is only supported for dynamic calldata arrays.
when trying to splice a bytes array from memory.
Accomplishments that we're proud of
Was able to to put this together is a few hours.
What we learned
Learned a bit more about bytes in solidity.
What's next for [ library ] -- Get Price Feed Data
Would be nice to get a chainlink review.
Built With
- hardhat
- remix
- smartcontacts
- solidity

Log in or sign up for Devpost to join the conversation.