Skip to content

EOS-Nation/eosio.yield

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

44 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

EOSIO Yield+ - Rewards

Overview

Yield+ is a Rewards system that incentivizes DeFi protocols to retain long-term TVL within their application.

Actions

  • Apply to Yield+
  • Claim Yield+ rewards
  • Update rewards by TVL Oracle

Quickstart

USER (DeFi application protocol)

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

# set additional protocol contracts
# > action can only be called during [status="pending"]
$ cleos push action eosio.yield setcontracts '[protocol, [a.protocol, b.protocol]]' -p protocol -p a.protocol -p b.protocol

# claim rewards
# > after 24 hours of being approved
# > claimable every 10 minutes interval
$ cleos push action eosio.yield claim '[protocol, receiver]' -p protocol

ADMIN (Operators)

# approve protocol
$ cleos push action eosio.yield approve '[protocol]' -p eosio.yield@admin
# notifies => oracle.yield

ORACLE (TVL Oracle)

# report protocol TVL to Yield+
$ cleos push action oracle.yield report '[protocol, "2021-04-12T12:20:00", <TVL USD>, <TVL EOS>]' -p oracle.yield

Table of Content

Releases

No releases published

Packages

No packages published

Languages

  • C++ 92.3%
  • Shell 7.7%