Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement "Donate to REX" ACTON #118

Closed
Tracked by #290 ...
DenisCarriere opened this issue Mar 21, 2024 · 1 comment
Closed
Tracked by #290 ...

Implement "Donate to REX" ACTON #118

DenisCarriere opened this issue Mar 21, 2024 · 1 comment
Labels

Comments

@DenisCarriere
Copy link
Contributor

DenisCarriere commented Mar 21, 2024

Purpose

Create donatetorex ACTION where any account can donate EOS funds to REX pool.

System contract transfers EOS from owner account and adds liquidity to REX pool (increases APY%).

Donating to REX can be implemented by via automated smart contracts fee distribution or done via manual operation.

Feedback provided by

donatetorex ACTION

/**
 * Donate funds to REX, increases REX pool return buckets
 * An inline transfer from payer to system contract of tokens will be executed.
 *
 * @param payer - the payer of donated funds.
 * @param quantity - the quantity of tokens to donated to REX with.
 * @param memo - the memo string to accompany the transaction.
 */
[[eosio::action]]
void donatetorex( const name& payer, const asset& quantity, const std::string& memo );

Preconditions

  • require_auth(payer)
  • must provide quantity above 0 amount
  • funds received to contribute to REX return buckets

References

Note: changes should be pushed to Antelope Reference contracts https://github.com/AntelopeIO/reference-contracts

@DenisCarriere
Copy link
Contributor Author

Implemented via: AntelopeIO/reference-contracts#61

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: Done
Development

No branches or pull requests

2 participants