GorillaStableCoin (GSC) is an algorithmic stablecoin designed to maintain a relative stability pegged to $1.00. Built using cutting-edge blockchain technologies, GSC provides a robust mechanism for decentralized minting, leveraging collateralized assets and Chainlink price feeds to ensure reliability and transparency.
- The stablecoin is anchored or pegged to $1.00.
- Utilizes Chainlink Price Feeds to ensure accurate and decentralized price data.
- Supports exchange functionality to seamlessly convert ETH and BTC into GSC, ensuring smooth usability across ecosystems.
- GSC employs a decentralized algorithmic minting process.
- Users can mint GSC tokens only when providing sufficient collateral.
- This ensures the value of the stablecoin is always backed by assets, protecting it from volatility.
- GSC uses exogenous collateral (external crypto assets) to back its value.
- Supported collateral types include:
- wETH (Wrapped Ethereum)
- wBTC (Wrapped Bitcoin)
GorillaStableCoin is built on a robust foundation using the following tools and libraries:
- OpenZeppelin Contracts
- ERC20 implementation for token standard compliance.
- ReentrancyGuard to prevent reentrancy attacks and ensure contract security.
- Chainlink Price Feeds
- For reliable, tamper-proof, and decentralized price data.
- Forge
- Used for efficient smart contract development, testing, and deployment.
-
Collateralized Minting:
- Users can mint GSC tokens by providing wETH or wBTC as collateral.
- The required collateral is dynamically calculated using Chainlink price feeds to maintain the $1.00 peg.
-
Security Features:
- ReentrancyGuard prevents malicious actors from exploiting reentrancy vulnerabilities.
- Users can swap ETH or BTC for GSC seamlessly through a custom function in the smart contract, utilizing Chainlink price feeds for conversion rates.
-
Clone the repository:
git clone https://github.com/0xChaddB/gorilla-stablecoin.git cd gorilla-stablecoin -
Install dependencies:
forge install
-
Compile the contracts:
forge build
-
Run tests:
forge test
-
Deploy the smart contracts to your desired blockchain network (e.g., Ethereum mainnet, testnets):
forge script script/Deploy.s.sol:Deploy --rpc-url <NETWORK_RPC_URL> --private-key <PRIVATE_KEY>
-
Verify the contracts:
forge verify-contract <CONTRACT_ADDRESS> <CONTRACT_PATH> --chain-id <CHAIN_ID> --etherscan-api-key <API_KEY>
- The smart contracts include protections against reentrancy attacks using OpenZeppelin's ReentrancyGuard.
- Chainlink oracles ensure tamper-proof price data, reducing the risk of manipulation.
- Thorough testing has been conducted to minimize vulnerabilities, but users should conduct their own due diligence.
- Support for additional collateral types (e.g., DAI, USDC).
- Enhanced governance mechanisms for adjusting the collateralization ratio and stability parameters.
- Integration with Layer 2 solutions for faster and cheaper transactions.
This project is licensed under the MIT License.
We welcome contributions from the community! Please open an issue or submit a pull request if you have suggestions or improvements.
For questions or support, reach out to:
- Email: 0xChaddB@proton.me
- GitHub Issues: Issues Page