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.
- Add supported tokens
- Compute TVL protocol
- Report TVL to Rewards
# 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
# 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
# approve oracle
$ cleos push action oracle.yield approve '[oracle]' -p oracle.yield@admin