Install any skill in seconds. Free to start, no credit card required.
Get Started Free →dokhacgiakhoa/defi-protocol-templates
Implement DeFi protocols with production-ready templates for staking, AMMs, governance, and lending systems.
Passed 17 of 22 test cases with the skill, and 14 of 22 without it.
3 fixed14 passed either way5 still failing0 broke
Tokens, turns and time describe resource use, not a dollar price.
One of 3 test cases the skill fixed. Same model, same prompt, with and without the skill.
In the standard single-asset reward distribution contract, what default constant rate value per second is assigned to reward distribution?
| Checked | Without skill | With skill |
|---|---|---|
| Sets the initial default reward rate state variable to 100 reward units per second. | Missed | Passed |
The instructions your model reads when the skill loads.
Production-ready templates for common DeFi protocols including staking, AMMs, governance, lending, and flash loans.
resources/implementation-playbook.md.// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "@openzeppelin/contracts/security/ReentrancyGuard.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
contract StakingRewards is ReentrancyGuard, Ownable {
IERC20 public stakingToken;
IERC20 public rewardsToken;
uint256 public rewardRate = 100; // Rewards per second
test cases passed, vs 14 / 22 without
Published skills whose descriptions closely match this one, with their headline benchmark lift.
More skills from the same source and nearby in the registry, with their headline benchmark lift.