1

I need an ETH-USD price oracle for my vyper contract. So far, the oracle services I've found, like chainlink, are written in solidity. Is it possible to use a solidity oracle in a vyper contract? How can I do this?

Would I have to build my own oracle?

0

You can declare the oracle contract interfaces in Vyper, then call them like you would any other contract: https://vyper.readthedocs.io/en/latest/structure-of-a-contract.html#contract-interfaces

New contributor
Octa9on is a new contributor to this site. Take care in asking for clarification, commenting, and answering. Check out our Code of Conduct.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.