Skip to content

sector-fi/sector-token

Repository files navigation

Sector Contracts

Running Tests

install deps

yarn

init submodules

git submodule update --init --recursive

install foundry

foundry tests:

yarn test

hardhat VotingEscrow.sol tests:

npx hardhat test

Coverage

see coverage stats:

yarn coverage

install this plugin: https://marketplace.visualstudio.com/items?itemName=ryanluker.vscode-coverage-gutters

run yarn coverage:lcov then run Display Coverage via Command Pallate

Contract descriptions:

  • SECT.sol is Sector token
  • VotingEscrow.sol is veSECT forked for fiatDAO
  • bSECT.sol is a token that can be converted to SECT token given a set price. User sends x bSECT tokens + x * price of underlying tokens and recieves SECT tokens.
  • lveSECT is a token that can be redemeed for veSECT w a 6m lockup at the time of conversion.
  • RewardDistributor is a Merkle distributor that distributes 50% bSECT + 50% lveSECT

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published