Skip to content

Instantly share code, notes, and snippets.

View Signor1's full-sized avatar
🎯
Focusing

Signor Dev Signor1

🎯
Focusing
View GitHub Profile
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Jumia</title>
<link rel="stylesheet" href="css/styles.css">
<link href="https://cdn.jsdelivr.net/npm/remixicon@4.5.0/fonts/remixicon.css" rel="stylesheet" />
</head>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Jumia</title>
<link rel="stylesheet" href="css/styles.css">
<link href="https://cdn.jsdelivr.net/npm/remixicon@4.5.0/fonts/remixicon.css" rel="stylesheet" />
</head>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Forms</title>
</head>
<body>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>School ID Card</title>
<link rel="stylesheet" href="css/styles.css">
<link rel="shortcut icon" href="img/favicon.ico" type="image/x-icon">
</head>
@Signor1
Signor1 / IERC20.sol
Created August 9, 2025 17:11
Mainnet Forking
// SPDX-License-Identifier: UNLICENSED
pragma solidity ^0.8.9;
interface IERC20 {
function approve(address _spender, uint256 _value) external;
function balanceOf(address who) external view returns (uint256 balance);
}
import { useState } from "react";
import abi from "./abi.json";
import { ethers } from "ethers";
const contractAddress = "0x9D1eb059977D71E1A21BdebD1F700d4A39744A70";
function App() {
const [text, setText] = useState("");
async function requestAccount() {
@Signor1
Signor1 / lib.rs
Created July 20, 2025 22:07
Campaign Marketing
use std::collections::HashMap;
#[derive(PartialEq, Debug)]
pub enum CampaignStatus {
Inactive,
Active,
Completed,
}
#[derive(Debug)]
@Signor1
Signor1 / README.md
Created June 25, 2025 14:34
Implementing ERC20 Permit

React Hooks (JavaScript)

  1. useERC20Permit Hook

For tokens that already inherit ERC20Permit (EIP-2612) Single transaction: No need for separate approve + transferFrom Functions:

generatePermitSignature() - Creates the permit signature depositWithPermit() - Deposits in one transaction

@Signor1
Signor1 / example.md
Last active May 7, 2025 13:02
Proposed Transaction Fee Formula for Strimz

(Example: If N = 10, Fee = $0.30 + ($0.15 × 3.16) ≈ $0.77)


Real-World EVM Example

Assume:

  • Base Fee = $0.30 (covers gas for 1 contract call).
  • Variable Fee = $0.15 (your profit margin).
@Signor1
Signor1 / a.md
Last active April 22, 2025 11:36
BondCraft Launchpad

Bonding Curve Explained
A bonding curve is a mathematical model that defines the price relationship of a token based on its supply. It determines how the token's price increases as more tokens are bought (minting) and decreases when tokens are sold back (burning). This creates a transparent, algorithmic market maker where:

  • Early buyers get lower prices.
  • Later buyers pay progressively higher prices.
  • Liquidity is programmatically managed.

BondCraft’s Bonding Curve

BondCraft uses a linear bonding curve with the formula: