Skip to content

EOS-Nation/oracle.yield

 
 

Repository files navigation

EOSIO Yield+ - Oracle

Overview

Yield+ Oracle system will be supporting Yield+ Rewards to provide reliable TVL data metrics of DeFi protocols and leveraging decentralized data price feeds from existing oracle providers on EOS mainnet.

Actions

  • Add supported tokens
  • Compute TVL protocol
  • Report TVL to Rewards

Quickstart

USER (DeFi application protocol)

# add token
$ cleos push action oracle.yield addtoken '["4,EOS", "eosio.token", 1, "eosusd"]' -p oracle.yield

# delete token
cleos push action oracle.yield deltoken '["EOS"]' -p oracle.yield

ORACLE (TVL Oracle)

# register protocol
$ cleos push action eosio.yield regprotocol '[protocol, [{"key": "url", "value": "https://myprotocol.com"}]]' -p protocol

# report TVL
$ cleos push action oracle.yield report '["mydapp", "2022-05-13T00:00:00", 30000000, 20000000]' -p oracle.yield

ADMIN (Operators)

# approve oracle
$ cleos push action oracle.yield approve '[oracle]' -p oracle.yield@admin

Table of Content

Releases

No releases published

Packages

No packages published

Languages

  • C++ 92.2%
  • Shell 7.8%