Nova finance nToken program
nAssets are Nova Finance’s framework for building programmable assets. nAssets can be used to tokenize and store collective forms of value while also instructing assets to yield, exchange or rebalance.
Within our Solana MVP, our first nAsset token type allows users to execute a simple hedge where they reduce their exposure to volatility of a cryptocurrency asset by converting and maintaining a % of the nAsset in stablecoin. This nAsset can protect users from downside risk and is a more efficient form of collateral as liquidation is much harder to achieve.
Going forward, we will be releasing portfolios and more complex programmable assets that take profit and redistribute when certain conditions are met. Follow our repository to stay updated!
We will be using famous swap and farming protocols such as serum and saber protocols:
Here a demo from Nova Front end :
novaFinanceSolanaVideo.mp4
Test our project , follow the next steps
Social
Setup Guide
install rust
$ curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
install solana
$ sh -c "$(curl -sSfL https://release.solana.com/v1.6.6/install)"
Download the project
$ git clone https://github.com/NovaFi/nToken-solana
To run our project , follow the next steps :
First fetch the npm dependencies, by running:
$ npm install
There are two ways to build the on-chain program :
first way
$ cd program
$ cargo build-bpf
second way
$ cd js
$ npm run build:program
Run the client
$ cd js
$ npm install
$ npm run start
Test the program
$ cd program
$ cargo test