Skip to content

Smart contracts for Ref Finance

License

MIT, Apache-2.0 licenses found

Licenses found

MIT
LICENSE
Apache-2.0
LICENSE-APACHE
Notifications You must be signed in to change notification settings

PembROCK-Finance/ref-contracts

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

59 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Ref Finance Contracts

This mono repo contains the source code for the smart contracts of Ref Finance on NEAR.

Contracts

Contract Reference Description
test-token - Test token contract
ref-exchange docs Main exchange contract, that allows to deposit and withdraw tokens, exchange them via various pools

Development

  1. Install rustup via https://rustup.rs/
  2. Run the following:
rustup default stable
rustup target add wasm32-unknown-unknown

Testing

Contracts have unit tests and also integration tests using NEAR Simulation framework. All together can be run:

cd ref-exchange
cargo test --all

Compiling

You can build release version by running next scripts inside each contract folder:

cd ref-exchange
./build.sh

Deploying to TestNet

To deploy to TestNet, you can use next command:

near dev-deploy

This will output on the contract ID it deployed.

About

Smart contracts for Ref Finance

Resources

License

MIT, Apache-2.0 licenses found

Licenses found

MIT
LICENSE
Apache-2.0
LICENSE-APACHE

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Rust 99.6%
  • Shell 0.4%