Skip to content

unifiprotocol/UP_V2

Repository files navigation

UPv2

This repository contains the smart contracts for the new version of the UP contract:

  • ERC20 Token
  • Token public minting
  • Token controller for pricing and internal handling
  • Strategies for getting incoming APR and its controller

Contracts

  • UP.sol ERC20 implementation of the UP token.
  • UPMintPublic.sol This contract is public and have the logic for minting UP with a Premium price using native token: ETH amount * %Premium.
  • UPController.sol Because the value of UP is made by the reserves of native token, this contract will store all the native reserves and will control de price of the token. Also, contains logic for borrowing and minting UP token under the arbitrage/balancing system, and legacy methods.
  • Vendor.sol Swap contract between UPv1 and UPv2.
  • Rebalancer.sol Controller of the strategies for get APR/Rewards and their distribution.

Scripts

yarn compile # generates typechain types

yarn test # runs test files

Credits

This project is licensed under the MIT license and made by the Unifi Protocol Tech team.

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •