From b8d45827c5940a23cdc8aa5420e3ce45679230df Mon Sep 17 00:00:00 2001 From: Colin Stark Date: Tue, 9 May 2023 21:35:46 +0100 Subject: [PATCH] Revert "fix and bugs" --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 1abbb4a..90e8394 100644 --- a/README.md +++ b/README.md @@ -111,7 +111,7 @@ contract MyStablecoin is ERC20 { constructor() ERC20("My Stablecoin", "MYS") { governance = msg.sender; - reserveRatio = 2000; // Example reserve ratio, adjust as needed + reserveRatio = 0.2; // Example reserve ratio, adjust as needed } modifier onlyGovernance() { @@ -143,7 +143,7 @@ contract MyStablecoin is ERC20 { function _calculateStability(uint256 amount) private view returns (uint256) { uint256 totalSupply = totalSupply(); - uint256 reserve = (totalSupply * reserveRatio) / 10000; // adjust to decimal percentage + uint256 reserve = totalSupply * reserveRatio; return totalSupply - reserve - amount; } }