Skip to content

Instantly share code, notes, and snippets.

View developeruche's full-sized avatar
🤓
Building

Developer Uche developeruche

🤓
Building
View GitHub Profile

0x2d57978b63d19e5881aeae3067cdce3439571aa9 NIV

0x5c4432328b97136e6eaf8295d61f62f634f6360b NIK

0x4c7e871f32f0df6af752b4f4b9e064f71d1c3d4c MON

0xb58da0b9d67c2b34e9a4d5c9a16b48172fdc24df AMQ

0xde97b28596f6e13586f3d01cb5cdeefca482c51a DQ2

[
{
"inputs": [
{
"internalType": "string",
"name": "_name",
"type": "string"
},
{
"internalType": "string",

0xb6a36afae5982bf8887c8bec515bc7d1382e6334 NIV

0xddec3334f314038b8569f42dce6c148e0fe889af NIK

0x1cc9d1216860d65fb2c74364d5a0035e840cbcda MON

0x9058b7f3158955370d2932f23f8c4bda580df81e AMQ

0x59826e6ad3434528ce833f95c76fc1a565368b4a DQ2

[
{
"inputs": [],
"name": "INSUFFICENT_POINTS",
"type": "error"
},
{
"inputs": [],
"name": "INVALID_INPUT",
"type": "error"
@developeruche
developeruche / sec.json
Created January 17, 2023 07:15
Me Protocol Sec Module
[
{
"inputs": [
{
"internalType": "address",
"name": "_token0",
"type": "address"
},
{
"internalType": "address",
[
{
"inputs": [],
"name": "INSUFFICENT_POINTS",
"type": "error"
},
{
"inputs": [],
"name": "INVALID_INPUT",
"type": "error"
{
"abi": [
{
"inputs": [],
"name": "INSUFFICENT_POINTS",
"type": "error"
},
{
"inputs": [],
"name": "INVALID_INPUT",
@developeruche
developeruche / msgData.sol
Created January 6, 2023 06:53
This code snippet shows how to load and manipulated bytes data using assemble
contract MsgData {
function _fromUint(bytes memory data) internal pure returns(uint256 value) {
uint256 value1;
uint256 value2;
assembly {
value1 := mload(add(data, 36))
value2 := mload(add(data, 68))
value := add(value1, value2)
}
@developeruche
developeruche / staking.sol
Created November 21, 2022 23:43
This is the popular staing reward contract
pragma solidity 0.5.17;
/*
____ __ __ __ _
/ __/__ __ ___ / /_ / / ___ / /_ (_)__ __
_\ \ / // // _ \/ __// _ \/ -_)/ __// / \ \ /
/___/ \_, //_//_/\__//_//_/\__/ \__//_/ /_\_\
/___/
* Synthetix: StakingRewards.sol
/**
*Submitted for verification at BscScan.com on 2022-07-24
*/
/**
*Submitted for verification at BscScan.com on 2022-06-17
*/
// SPDX-License-Identifier: MIT
pragma solidity >=0.7.0 <0.8.0;