https://github.com/balancednetwork/balanced-contracts
Smart Contracts for the Balanced network on ICON
https://github.com/balancednetwork/balanced-contracts
blockchain defi dex icon-project synthetic-assets
Last synced: about 1 year ago
JSON representation
Smart Contracts for the Balanced network on ICON
- Host: GitHub
- URL: https://github.com/balancednetwork/balanced-contracts
- Owner: balancednetwork
- License: mit
- Created: 2020-09-08T01:40:09.000Z (almost 6 years ago)
- Default Branch: development
- Last Pushed: 2022-03-04T09:47:45.000Z (over 4 years ago)
- Last Synced: 2024-04-23T19:15:46.622Z (about 2 years ago)
- Topics: blockchain, defi, dex, icon-project, synthetic-assets
- Language: Python
- Homepage: https://balanced.network
- Size: 3.78 MB
- Stars: 10
- Watchers: 8
- Forks: 6
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Balanced Smart Contracts
This is a repository holding the smart contracts layer of the balanced project. To deploy locally, we recommend setting up an instance of [T-Bears](https://www.icondev.io/docs/tbears-overview).
Oracles and price data for the synthetic assets are provided by [BAND](https://bandprotocol.com/).
In development, a day can be configured by the U_SECONDS_DAY param in each SCORE's constants file (consts.py). Dividing this by 24 makes daily actions occur every hour to speed testing.
The repository structure is:
- `core_contracts` - This folder holds all of the core smart contracts deployed for use in Balanced. It contains:
- `daofund` - Contract receiving Balanced tokens with use voted on by the DAO
- `dex` - AMM Decentralized exchange with separate sICX/ICX queue instrument for trading minted assets
- `dividends` - Contract used to pay out dividends to BALN token holders
- `governance` - Used to vote on and perform DAO actions, as well as setting contract configuration variables
- `loans` - Used to mint synthetic assets, collateralized by `sICX`
- `oracle` - a dummy replacement for a BAND oracle, for use in development
- `reserve` - reserve funds for risk situations
- `rewards` - gives BALN tokens to addresses that earn them in platform actions
- `staking` - manages SICX
- `token_contracts` - This folder holds all of the tokens used in the balanced protocol
- `baln` - balanced token, used in platform governance and claiming dividends. Can be earned by contributing to or using balanced
- `bnUSD` - Synthetic US Dollar, based on the band oracle price. Can be minted by locking up collateral (sICX)
- `bwt` - Balanced worker token, given to core contributers as pay and earns a part of the inflation
- `sicx` - staked ICX token, allows users to transact a staked token. Staking contract will allow choice of prep voted for in an update