Chainlink - Price Oracle | DeFi

preview_player
Показать описание
This video explains how to use Chainlink price oracle to get the price of Ethereum inside your Solidity smart contract.

#DeFi #Compound #SmartContract #Solidity #Ethereum #スマートコントラクト

Take a course

Follow
Рекомендации по теме
Комментарии
Автор

Thanks a lot for the 8.0 updates. I think you are hands down the most underrated solidity/smart contract teacher anywhere.

SAINT_PATRICK
Автор

Hi, i am trying to dig into smart contracts and oracles for my thesis. I don't understand how the oracle returns the price, in the aggregator there is the function latestRoundData, which returns answer. ok. but who gives all the informations to the function? how does it work?

mammodde
Автор

Any idea how to get the price of a custom deployed token? I'm creating a token used for playing arcade games online. Each game should cost 25 cents, so I need to be able to gather the current price of the token in order to charge a player the right amount to register for a play.

WanderWiseRVReports
Автор

how to remove the unused variable warning for roundID, startedAt, timeStamp and answeredInRound?

sunnysourav
Автор

Can you make a tutorial on chainlink external adapters and how to host them on nodes which are provided by the node operators?

nishithpatnaik
Автор

Great content! Does it cost LINK to ask price from Chainlink? It seems free in your code.

dappopia
Автор

Thanks for the video.. are you planning any video serise for Development tools like

- Truffle or Hardhet
- Forking mainnet for testing (like you have used a fork in this videos as well)
- Debugging set up and techniques
- Error diagnosis on mainnet contract and how to replicate them on test net

Looking forward for your comments on it

DevrajSinghRawat
Автор

Great video !! 🤓 silly question, is USD the only acceptable conversion currency for all cryptos?

salem
Автор

I am getting execution reverted when running the test case

sanyasareen
Автор

Thanks for the video. I test the code in truffle and deploy on local blockchain, it is deploying successfully. but when I call the getLatestPrice function in truffle console. it doesn't work and i receive this error. I can't understand what is happening and what the problem is. Can you help me to figure it out??
(I also get this error while deploying on Remix)


Returned error: VM Exception while processing transaction: revert
at evalmachine.<anonymous>:1:15
at evalmachine.<anonymous>:2:49
at Script.runInContext (node:vm:139:12)
at runScript
at Console.interpret
at bound (node:domain:421:15)
at REPLServer.runBound [as eval] (node:domain:432:12)
at REPLServer.onLine (node:repl:889:10)
at REPLServer.emit (node:events:390:28)
at REPLServer.emit (node:domain:475:12)
at REPLServer.Interface._onLine (node:readline:487:10)
at REPLServer.Interface._line (node:readline:864:8)
at (node:readline:1216:14)
at REPLServer.self._ttyWrite (node:repl:984:9) {
data: {
{ error: 'revert', program_counter: 294, return: '0x' },
stack: 'c: VM Exception while processing transaction: revert\n' +
' at Function.c.fromResults +
' at C:\\Users\\mehdi\\AppData\\Roaming\\npm\\node_modules\\ganache-cli\\build\\ganache-core.node.cli.js:42:50402',
name: 'c'
},
hijackedStack: 'Error: Returned error: VM Exception while processing transaction: revert\n' +
' at Object.ErrorResponse +
' at +
' at +
' at +
' at +
' at +
' at +
' at IncomingMessage.<anonymous> +
' at IncomingMessage.emit (node:events:402:35)\n' +
' at IncomingMessage.emit (node:domain:537:15)\n' +
' at endReadableNT +
' at processTicksAndRejections
}

nazimehdizadeh