web3-smart-contracts
web3-smart-contracts copied to clipboard
A repository of smart-contracts in the web3 space, all in a simple and collective space of hardhat for you to refer anytime
## Description _Give a summary of the change that you have made_ Used custom error statements to optimise gas costs instead of using string based require statements. ## Mentions _Mention...
## Description the hasSufficientFunds modifier is defined at the top of the contract. This modifier checks if the caller has sufficient funds to perform the requested operation, and if not,...
### Is your feature request related to a problem? Please describe. No, it's not related to any specific problem. ### Describe the solution you'd like I want to add all...
## This smart contract works as follows : - Two parties and one party propose to get married. If both parties agree then contract status is changed to “married” and...
**Describe the bug** [Banking System](https://github.com/metafy-social/web3-smart-contracts/blob/1031b0357fafe0151cf1295b672a59b73fd1f119/contracts/Banking/BankingSystem.sol) contract two functions using a check that can be moved into a modifier that would reduce code duplication I want to fix this issue.
## Description Added a smart contract for gold fish card game Fixes #122 ## Developer's checklist - [x] My PR follows the style guidelines of this project - [x] I...
### Is your feature request related to a problem? Please describe. This is a simple hotel room booking smart contract where one can rent a hotel room using the example...
## Description Created a smart contract which uses an oracle(chainlink price feed) for getting real time price of eth/usd Fixes #9 ## Dependencies chainlink contracts v0.8 ## Future Improvements Further...
## Description Optimised the smart contract using the custom error with revert statements. This significantly reduces the gas cost in smart contract transactions. _Give a summary of the change that...
### Is your feature request related to a problem? Please describe. Create contract for ERC-4626 (Tokenized Vault Standard) ### Please comment your approach towards this, and we are happy to...