Solv Vouchers is the DeFi application for users to customize their financial instruments as Vouchers. Through the smart contract of Solv Vouchers, digital assets like tokens could be transformed into Vouchers representing investment allocations as splittable, composable NFTs.
This repository contains the core smart contracts for Solv Protocol V2, along with their configuration files, initialization scripts and deployment information.
More information about Solv Protocol:
- Official Website: https://solv.finance
- Documentation: https://docs.solv.finance/solv-documentation
Smart contracts are packaged into four sub-projects, all contained in the packages
directory.
solv-token
contains the smart contract of the standard ERC-20 token SOLV
.
solv-vnft-core
contains the interface definition of the VNFT
protocol and the implemention of which to represent splittable, composable Financial NFTs.
solv-voucher
contains the core smart contracts of Vouchers
and its VestingPool
, along with the initialization scripts and deployment information.
By utilizing the VNFT token standard, the smart contracts of solv-voucher
allow digital assets to be transformed into Vouchers representing investment allocations as splittable, composable NFTs.
solver
contains the smart contract of the manager Solver
, which provides abilities to enable/disable Vouchers, as well as verify permissions whether users have or not to proceed operations such as depositing, withdrawing and transferring.
To install Solv V2 Voucher, pull the repository from GitHub and install all dependencies through yarn
or npm
.
git clone [email protected]:solv-finance-dev/solv-v2-voucher.git
cd solv-v2-voucher
# install with yarn
yarn install --lock-file
# or install with npm
npm install
The deployment of solv-voucher
depends on the deployment of solver
and its underlying token.
- Deploy solv-token
cd solv-token
yarn compile
# for local deployment, run:
yarn deploy:localhost
# for deployment with target network(see: hardhat.config.ts), run:
yarn deploy --network `network`
- Deploy solver
cd solver
yarn compile
# for local deployment, run:
yarn deploy:localhost
# for deployment with target network(see: hardhat.config.ts), run:
yarn deploy --network `network`
- Deploy solv-voucher
cd solv-voucher
yarn compile
# for local deployment, run:
yarn deploy:localhost
# for deployment with target network(see: hardhat.config.ts), run:
yarn deploy --network `network`
solv-voucher
should be initialized after its deployment.
cd solv-voucher
# for local deployment, run:
yarn init:localhost
# for deployment with target network(see: hardhat.config.ts), run:
yarn init --network `network`
# for local deployment, run:
yarn test:localhost
# for deployment with target network(see: hardhat.config.ts), run:
yarn test --network `network`
The Solv Protocol bug bounty program is on the Immunefi platform and can be accessed at: https://www.immunefi.com/bounty/solvprotocol
The bug bounty program is focused on the smart contracts and focused on preventing:
- Loss of user funds staked (principal) by freezing or theft
- Theft of unclaimed yield
- Freezing of unclaimed yield
- Smart contract fails to deliver promised returns
Rewards are distributed according to the impact of the vulnerability based on the Immunefi Vulnerability Severity Classification System.
Threat Level | Bounty |
---|---|
Critical | USD $50,000 |
High | USD $25,000 |
Medium | USD $10,000 |
Low | USD $3,000 |
All Critical/High severity bug reports must come with a PoC and a suggestion for a fix in order to be considered for a reward.
Payouts are handled by the Solv Protocol team directly and are denominated in USD. Payouts are done in USDT.