Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/lukman-01/swisstronik-erc20-challenge
This contract implements a basic ERC-20 token with additional features such as whitelisting, pausing, and a specific token minting mechanism.
https://github.com/lukman-01/swisstronik-erc20-challenge
erc20 ethereum hardhat javascript solidity swisstronik
Last synced: about 1 month ago
JSON representation
This contract implements a basic ERC-20 token with additional features such as whitelisting, pausing, and a specific token minting mechanism.
- Host: GitHub
- URL: https://github.com/lukman-01/swisstronik-erc20-challenge
- Owner: Lukman-01
- Created: 2023-09-14T03:13:18.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2023-09-15T17:45:29.000Z (over 1 year ago)
- Last Synced: 2023-09-15T20:12:53.303Z (over 1 year ago)
- Topics: erc20, ethereum, hardhat, javascript, solidity, swisstronik
- Language: JavaScript
- Homepage:
- Size: 190 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
### Overview:
The project represents the "Ibukun Token" (IBK), a smart contract developed on the Ethereum blockchain using Solidity. This contract implements a basic ERC-20 token with additional features such as whitelisting, pausing, and a specific token minting mechanism.Functionalities:
1. **Token Minting:** Users can mint (create) new Ibukun Tokens by calling the `mintTokens` function, which allows them to specify the amount of tokens they want to mint. The contract calculates the required payment in Ether based on the token price and mints the requested tokens to the caller.2. **Whitelisting:** The contract includes a whitelist of addresses that are allowed to mint tokens. The owner of the contract can add and remove addresses from this whitelist using the `addToWhitelist` and `removeFromWhitelist` functions, respectively.
3. **Pausing:** The contract is pausable, which means that the owner can pause and unpause token minting operations. This feature can be useful to halt minting in case of emergencies or security concerns.
4. **Ownership:** The contract owner has special privileges, including the ability to withdraw Ether and other ERC-20 tokens held by the contract.
5. **Withdrawal:** The contract allows the owner to withdraw Ether and ERC-20 tokens stored within the contract to a designated address.
Uses and Applications:
1. **Token Creation:** The primary use case of this contract is to create and manage the Ibukun Token (IBK) on the Ethereum blockchain. It serves as a foundation for deploying a custom token that can be used for various purposes, such as rewards, incentives, or as a medium of exchange within a specific ecosystem.2. **Token Sale:** The contract can be used in a token sale or Initial Coin Offering (ICO) scenario, where users can mint tokens by sending Ether to the contract. The contract ensures that users receive the correct amount of tokens based on the token price.
3. **Whitelisting:** The whitelisting feature allows for controlled access to token minting. This can be useful for regulatory compliance, ensuring that only authorized users are allowed to participate in the token sale.
4. **Pausing and Security:** The ability to pause token minting can be valuable in situations where immediate action is needed to address issues or vulnerabilities in the contract. It enhances the security and trustworthiness of the token contract.
5. **Token Distribution:** The contract owner can use the contract to distribute tokens to specific addresses, such as team members, partners, or stakeholders.
6. **Token Management:** The owner's ability to withdraw Ether and other ERC-20 tokens simplifies the management of funds within the contract, making it easy to distribute proceeds from token sales or other income generated by the contract.
Overall, the Ibukun Token contract provides a versatile foundation for creating and managing a custom token on the Ethereum blockchain with features designed to enhance security and control over token minting and funds management. Its use cases extend to various scenarios where custom tokens play a significant role in decentralized applications and ecosystems.