Skip to content

NEAR protocol Meta Staking Pool, diversified stake, stNEAR, $META, AMM

License

Notifications You must be signed in to change notification settings

jmorvay/meta-pool

 
 

Repository files navigation

Meta Staking Pool

Overview

What is Meta-Pool and other non-Technical Documentation

CLICK HERE

Technical Documentation

Technical Notes

Repositories

This is the Smart Contract repository. The Web App UI is at https://github.com/Narwallets/webapp-meta-pool.git

Change Log

0.1.0

  • Initial version based on core-contracts/lockup and core-contracts/staking-pool
  • Deposit, withdraw
  • Distributed stake/unstake
  • NEAR/stNEAR liquidity pool, Add/Remove liquidity
  • META Minting wtih rewards

TO DO & Help needed

Smart Contract

  • Deposit/withdraw
  • Buy stNEAR/Stake
  • Sell stNEAR/immediate unstake
  • Classic unstake-wait-finish-unstake
  • User trip-meter, measure rewards
  • distribute staking/unstaking
  • retrieve unstaked and ready
  • NEAR/stNEAR Liquidity Pool, Add/Remove liquidity
  • clearing mechanism on stake to restore liquidity in the NSLP
  • act as a NEP-xxx MULTI-FUN-TOK (multi-token contract). Implement for NEAR, stNEAR and META
  • Dividends-pool stNEAR/META
  • Staking-loans to whitelisted validators
  • Emergency Staking (from the nslp) to whitelisted validators

Test

  • Unit Tests
  • Simulation tests
  • Full code coverage

Staking pool list

  • List selected staking pools, getting weight, staked & unstaked
  • add a staking pool, set weight

Governing

  • Mint and distribute META with rewards
  • Phase II - Governing DAO

Infrastructure

  • External chron to call distribute()
  • compute remainig epoch time
  • withelist pools before adding them
  • auto-unstake stNEAR in the NSLP (when the clearing mechanism is not enough)

Expansions

  • USDN: Create a collateral-based stablecoin similar to Compound's DAI, using NEAR & stNEAR as collateral

About

NEAR protocol Meta Staking Pool, diversified stake, stNEAR, $META, AMM

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Rust 99.1%
  • Shell 0.9%