English
Back
Ongoing71 days left
2024/04/16 → 2024/07/15, 00:00

Contribute an approved smart contract

Hunt
200KLAY
  • Research
  • klaytn
  • Details
  • Activities
Hunter’s Guide
How to earn crypto as a bounty hunter?
View Guide ↗
Funder
Klaytn Hacker House
Organization
contact
ZxStim
@zxstim
Send Mail
dorahacksofficial
Telegram username
Contact ↗
participants
 
Multiple-winner bounty
details

Topic

Contribute an approved smart contract into: https://github.com/klaytn/klaytn-dapp-toolkit

Details

  • Proposed smart contract should be approved beforehand

  • Solidity source files, scripts and test cases, a small README.md file explaining use case

  • Can be adopted in Remix, Hardhat or Foundry frameworks

Rules

  • Open source
  • Bounty submission should be of good quality (well tested for core functionalities)
Activities
  • PaulElisha submitted a solution on 2024/04/30 23:11
    Description
    A coin flip game smart contract where players flip coin by picking a side and the smart contract determines the true side using randomness,

  • Jerydam submitted a solution on 2024/04/24 17:54
    Description
    The Educain contract deploys instances of the Schooling System, which represents a school management system. The SchoolSystem contract has various functions for managing courses, students, and lecturers, including: Employing lecturers and admitting students Creating and registering for courses Creating class sessions and marking attendance Querying session IDs, registered courses, and attendance percentages The contract uses modifiers to restrict access to certain functions based on roles (admin, lecturer, or student). It also inherits from the KIP17 contract for NFT functionality and uses the Ownable contract for ownership management. The SchoolSystemFactory contract keeps track of deployed SchoolSystem contracts and emits an event when a new instance is deployed.

  • hoangquocvietuet submitted a solution on 2024/04/24 14:55
    Description
    # Motivation Let’s say we all own a company, or a liquidity pool, that earns a stablecoin DAI periodically. The stablecoin DAI is the asset in this case. One inefficient way we could distribute the earnings is to push out DAI to each of the holders of the company on a pro-rata basis. But this would be extremely expensive gas wise. Similarly, if we were to update everyone’s balance inside a smart contract, that would be expensive too. Instead, this is how the workflow would work with ERC4626. Let’s say you and nine friends get together and each deposit 10 DAI each into the ERC4626 vault (100 DAI total). You get back one share. So far so good. Now your company earns 10 more DAI, so the total DAI inside the vault is now 110 DAI. When you trade your share back for your part of the DAI, you don’t get 10 DAI back, but 11. Now there is 99 DAI in the vault, but 9 people to share it among. If they were to each withdraw, they would get 11 DAI each. Note how efficient this is. When someone makes a trade, instead of updating everyones shares one-by-one, only the total supply of shares and the amount of assets in the contract changes. ERC4626 does not have to be used in this manner. You can have an arbitrary mathematical formula that determines the relationship between shares and assets. For example, you could say every time someone withdraws the asset, they also have to pay some sort of a tax that depends on the block timestamp or something like that. The ERC 4626 standard provides a gas efficient means for executing very common DeFi accounting practices.

  • thepluck received 50.0000 KLAY reward on 2024/04/24 14:47
    Transaction
    0xfbf2...3ae1

  • Jerydam submitted a solution on 2024/04/19 19:28
    Description
    Contriboost contract provides a convenient and efficient way for users to create and manage contribution systems on the Klaytn blockchain. Contribosost is a contribution system that allows participants to join, deposit funds, and then distributes those funds randomly among the participants at the end of each segment.

  • thepluck submitted a solution on 2024/04/19 13:00
    Description
    ERC5115: This standard proposes an API for wrapped yield-bearing tokens within smart contracts. It is an extension on the ERC-20 token that provides basic functionality for transferring, depositing, withdrawing tokens, as well as reading balances.

  • thepluck submitted a solution on 2024/04/19 12:59
    Description
    A flash loan is a smart contract transaction in which a lender smart contract lends assets to a borrower smart contract with the condition that the assets are returned, plus an optional fee, before the end of the transaction. This ERC specifies interfaces for lenders to accept flash loan requests, and for borrowers to take temporary control of the transaction within the lender execution. The process for the safe execution of flash loans is also specified.

  • The bounty was created on 2024/04/16 22:12