Skip to content

Meta Yield app. Allow any project to bootstrap liquidity through staking on Meta Pool.

Notifications You must be signed in to change notification settings

Narwallets/meta-yield

Repository files navigation

Metayield - Allow any project to bootstrap liquidity through staking on Meta Pool.

This repository contains an implementation of the front-end and NEAR protocol interaction via RPC API. The smart contract implementation: Katherine Fundraising Smart Contract.

Prerequisites In order to interact with the smart contract, we need it deployed. Once you have it, copy the smart contract account Id that we are going to use on the Dapp. Metayield needs to interact with Metapool smart contract to fetch specific data, eg stNEAR price.

Environment Setup

Local Environment Setup

  1. clone this repo locally
git clone https://github.com/Narwallets/meta-yield
  1. install dependencies
yarn
  1. open next.config.js and set the CONTRACT_ID env variable with the katherine fundraising smart contract and set METAPOOL_CONTRACT_ID en variable with the MetaPool smart contract.
module.exports = {
  reactStrictMode: true,
  env: {
    CONTRACT_ID: 'dev-1647362531405-23502905659580',
    METAPOOL_CONTRACT_ID: 'meta-v2.pool.testnet'
  }
}
  1. run the development server
npm run dev
# or
yarn dev

DEV Environment Setup

  1. clone this repo locally (skip if already done on local env setup)
git clone ...
  1. install dependencies (skip if already done on local env setup)
yarn
  1. deploy
vercel
  1. add CONTRACT_ID and METAPOOL_CONTRACT_ID env variables
vercel env add NEXT_PUBLIC_CONTRACT_ID 
vercel env add NEXT_PUBLIC_METAPOOL_CONTRACT_ID

DEV Production Setup

  1. clone this repo locally (skip if already done on local/dev env setup)
git clone ... 
  1. install dependencies (skip if already done on local/dev env setup)
yarn 
  1. deploy
vercel --prod
  1. add CONTRACT_ID env variable (skip if already done on dev env setup)
vercel env add NEXT_PUBLIC_CONTRACT_ID
vercel env add NEXT_PUBLIC_METAPOOL_CONTRACT_ID

About

Meta Yield app. Allow any project to bootstrap liquidity through staking on Meta Pool.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages