Skip to content
Verified contractExactBUSL-1.1

BUILDClaim

Address0xfed8d071c2ca87bc9ab95fa9efb64fa092d4e527
Balance

0 ETH

 

Transactions

1,444

 

Compiler

solc 0.8.26

 

Same code

5 more contracts

 

Details

Compiler
solc 0.8.26+commit.8a97fa7a
Language
solidity
Optimization
Yes, 200 runs
EVM version
cancun
License
BUSL-1.1
Match
Exactcreation code: yes, runtime code: yes
Verified on Sourcify
Created in block
23,541,314
Creation transaction
0x351e3e360b…e8513adfc8

Read7

  • getCurrentClaimValues(address,tuple[]) → (tuple[])
  • getFactory() → (address)
  • getGlobalState(uint256[]) → (tuple[])
  • getToken() → (address)
  • getUserState(tuple[]) → (tuple[])
  • supportsInterface(bytes4) → (bool)
  • typeAndVersion() → (string)

Write3

  • claim(address,tuple[])
  • deposit(uint256)
  • withdraw()

Events3

  • Claimed(address,uint256,uint256,bool,uint256,uint256,uint256,uint256,uint256)
  • Deposited(address,address,uint256,uint256)
  • Withdrawn(address,address,uint256,uint256)

Errors14

  • AccessControlUnauthorizedAccount(address,bytes32)
  • AlreadyClosed()
  • EnforcedPause()
  • InvalidDeposit(uint256,uint256)
  • InvalidEarlyClaim(address,uint256)
  • InvalidMerkleProof()
  • InvalidSender(address)
  • InvalidUser(address)
  • ProjectSeasonDoesNotExist(uint256,address)
  • ProjectSeasonIsRefunding(address,uint256)
  • ReentrancyGuardReentrantCall()
  • SafeERC20FailedOperation(address)
  • SeasonDoesNotExist(uint256)
  • UnlockNotStarted(uint256)

ABI as JSON

[
  {
    "type": "constructor",
    "inputs": [
      {
        "name": "token",
        "type": "address",
        "internalType": "address"
      },
      {
        "name": "delegateRegistry",
        "type": "address",
        "internalType": "address"
      },
      {
        "name": "multicall3",
        "type": "address",
        "internalType": "address"
      }
    ],
    "stateMutability": "nonpayable"
  },
  {
    "name": "AccessControlUnauthorizedAccount",
    "type": "error",
    "inputs": [
      {
        "name": "account",
        "type": "address",
        "internalType": "address"
      },
      {
        "name": "neededRole",
        "type": "bytes32",
        "internalType": "bytes32"
      }
    ]
  },
  {
    "name": "AlreadyClosed",
    "type": "error",
    "inputs": []
  },
  {
    "name": "EnforcedPause",
    "type": "error",
    "inputs": []
  },
  {
    "name": "InvalidDeposit",
    "type": "error",
    "inputs": [
      {
        "name": "balanceBefore",
        "type": "uint256",
        "internalType": "uint256"
      },
      {
        "name": "balanceAfter",
        "type": "uint256",
        "internalType": "uint256"
      }
    ]
  },
  {
    "name": "InvalidEarlyClaim",
    "type": "error",
    "inputs": [
      {
        "name": "user",
        "type": "address",
        "internalType": "address"
      },
      {
        "name": "seasonId",
        "type": "uint256",
        "internalType": "uint256"
      }
    ]
  },
  {
    "name": "InvalidMerkleProof",
    "type": "error",
    "inputs": []
  },
  {
    "name": "InvalidSender",
    "type": "error",
    "inputs": [
      {
        "name": "msgSender",
        "type": "address",
        "internalType": "address"
      }
    ]
  },
  {
    "name": "InvalidUser",
    "type": "error",
    "inputs": [
      {
        "name": "user",
        "type": "address",
        "internalType": "address"
      }
    ]
  },
  {
    "name": "ProjectSeasonDoesNotExist",
    "type": "error",
    "inputs": [
      {
        "name": "seasonId",
        "type": "uint256",
        "internalType": "uint256"
      },
      {
        "name": "token",
        "type": "address",
        "internalType": "address"
      }
    ]
  },
  {
    "name": "ProjectSeasonIsRefunding",
    "type": "error",
    "inputs": [
      {
        "name": "token",
        "type": "address",
        "internalType": "address"
      },
      {
        "name": "seasonId",
        "type": "uint256",
        "internalType": "uint256"
      }
    ]
  },
  {
    "name": "ReentrancyGuardReentrantCall",
    "type": "error",
    "inputs": []
  },
  {
    "name": "SafeERC20FailedOperation",
    "type": "error",
    "inputs": [
      {
        "name": "token",
        "type": "address",
        "internalType": "address"
      }
    ]
  },
  {
    "name": "SeasonDoesNotExist",
    "type": "error",
    "inputs": [
      {
        "name": "seasonId",
        "type": "uint256",
        "internalType": "uint256"
      }
    ]
  },
  {
    "name": "UnlockNotStarted",
    "type": "error",
    "inputs": [
      {
        "name": "seasonId",
        "type": "uint256",
        "internalType": "uint256"
      }
    ]
  },
  {
    "name": "Claimed",
    "type": "event",
    "inputs": [
      {
        "name": "user",
        "type": "address",
        "indexed": true,
        "internalType": "address"
      },
      {
        "name": "seasonId",
        "type": "uint256",
        "indexed": false,
        "internalType": "uint256"
      },
      {
        "name": "amount",
        "type": "uint256",
        "indexed": false,
        "internalType": "uint256"
      },
      {
        "name": "isEarlyClaim",
        "type": "bool",
        "indexed": false,
        "internalType": "bool"
      },
      {
        "name": "earlyVestAmount",
        "type": "uint256",
        "indexed": false,
        "internalType": "uint256"
      },
      {
        "name": "userClaimedInSeason",
        "type": "uint256",
        "indexed": false,
        "internalType": "uint256"
      },
      {
        "name": "totalClaimedInSeason",
        "type": "uint256",
        "indexed": false,
        "internalType": "uint256"
      },
      {
        "name": "totalLoyaltyAmount",
        "type": "uint256",
        "indexed": false,
        "internalType": "uint256"
      },
      {
        "name": "totalLoyaltyIneligibleAmount",
        "type": "uint256",
        "indexed": false,
        "internalType": "uint256"
      }
    ],
    "anonymous": false
  },
  {
    "name": "Deposited",
    "type": "event",
    "inputs": [
      {
        "name": "token",
        "type": "address",
        "indexed": true,
        "internalType": "address"
      },
      {
        "name": "sender",
        "type": "address",
        "indexed": true,
        "internalType": "address"
      },
      {
        "name": "amount",
        "type": "uint256",
        "indexed": false,
        "internalType": "uint256"
      },
      {
        "name": "totalDeposit",
        "type": "uint256",
        "indexed": false,
        "internalType": "uint256"
      }
    ],
    "anonymous": false
  },
  {
    "name": "Withdrawn",
    "type": "event",
    "inputs": [
      {
        "name": "token",
        "type": "address",
        "indexed": true,
        "internalType": "address"
      },
      {
        "name": "recipient",
        "type": "address",
        "indexed": true,
        "internalType": "address"
      },
      {
        "name": "amount",
        "type": "uint256",
        "indexed": false,
        "internalType": "uint256"
      },
      {
        "name": "totalWithdrawn",
        "type": "uint256",
        "indexed": false,
        "internalType": "uint256"
      }
    ],
    "anonymous": false
  },
  {
    "name": "claim",
    "type": "function",
    "inputs": [
      {
        "name": "user",
        "type": "address",
        "internalType": "address"
      },
      {
        "name": "params",
        "type": "tuple[]",
        "components": [
          {
            "name": "seasonId",
            "type": "uint32",
            "internalType": "uint32"
          },
          {
            "name": "isEarlyClaim",
            "type": "bool",
            "internalType": "bool"
          },
          {
            "name": "proof",
            "type": "bytes32[]",
            "internalType": "bytes32[]"
          },
          {
            "name": "maxTokenAmount",
            "type": "uint256",
            "internalType": "uint256"
          },
          {
            "name": "salt",
            "type": "uint256",
            "internalType": "uint256"
          }
        ],
        "internalType": "struct IBUILDClaim.ClaimParams[]"
      }
    ],
    "outputs": [],
    "stateMutability": "nonpayable"
  },
  {
    "name": "deposit",
    "type": "function",
    "inputs": [
      {
        "name": "amount",
        "type": "uint256",
        "internalType": "uint256"
      }
    ],
    "outputs": [],
    "stateMutability": "nonpayable"
  },
  {
    "name": "getCurrentClaimValues",
    "type": "function",
    "inputs": [
      {
        "name": "user",
        "type": "address",
        "internalType": "address"
      },
      {
        "name": "seasonIdsAndMaxTokenAmounts",
        "type": "tuple[]",
        "components": [
          {
            "name": "seasonId",
            "type": "uint256",
            "internalType": "uint256"
          },
          {
            "name": "maxTokenAmount",
            "type": "uint256",
            "internalType": "uint256"
          }
        ],
        "internalType": "struct IBUILDClaim.SeasonIdAndMaxTokenAmount[]"
      }
    ],
    "outputs": [
      {
        "name": "",
        "type": "tuple[]",
        "components": [
          {
            "name": "base",
            "type": "uint256",
            "internalType": "uint256"
          },
          {
            "name": "bonus",
            "type": "uint256",
            "internalType": "uint256"
          },
          {
            "name": "vested",
            "type": "uint256",
            "internalType": "uint256"
          },
          {
            "name": "claimable",
            "type": "uint256",
            "internalType": "uint256"
          },
          {
            "name": "earlyVestableBonus",
            "type": "uint256",
            "internalType": "uint256"
          },
          {
            "name": "loyaltyBonus",
            "type": "uint256",
            "internalType": "uint256"
          },
          {
            "name": "claimed",
            "type": "uint256",
            "internalType": "uint256"
          }
        ],
        "internalType": "struct IBUILDClaim.ClaimableState[]"
      }
    ],
    "stateMutability": "view"
  },
  {
    "name": "getFactory",
    "type": "function",
    "inputs": [],
    "outputs": [
      {
        "name": "",
        "type": "address",
        "internalType": "contract BUILDFactory"
      }
    ],
    "stateMutability": "view"
  },
  {
    "name": "getGlobalState",
    "type": "function",
    "inputs": [
      {
        "name": "seasonIds",
        "type": "uint256[]",
        "internalType": "uint256[]"
      }
    ],
    "outputs": [
      {
        "name": "",
        "type": "tuple[]",
        "components": [
          {
            "name": "totalLoyalty",
            "type": "uint256",
            "internalType": "uint256"
          },
          {
            "name": "totalLoyaltyIneligible",
            "type": "uint256",
            "internalType": "uint256"
          },
          {
            "name": "totalClaimed",
            "type": "uint256",
            "internalType": "uint256"
          }
        ],
        "internalType": "struct IBUILDClaim.GlobalState[]"
      }
    ],
    "stateMutability": "view"
  },
  {
    "name": "getToken",
    "type": "function",
    "inputs": [],
    "outputs": [
      {
        "name": "",
        "type": "address",
        "internalType": "contract IERC20"
      }
    ],
    "stateMutability": "view"
  },
  {
    "name": "getUserState",
    "type": "function",
    "inputs": [
      {
        "name": "usersAndSeasonIds",
        "type": "tuple[]",
        "components": [
          {
            "name": "user",
            "type": "address",
            "internalType": "address"
          },
          {
            "name": "seasonId",
            "type": "uint256",
            "internalType": "uint256"
          }
        ],
        "internalType": "struct IBUILDClaim.UserSeasonId[]"
      }
    ],
    "outputs": [
      {
        "name": "",
        "type": "tuple[]",
        "components": [
          {
            "name": "claimed",
            "type": "uint248",
            "internalType": "uint248"
          },
          {
            "name": "hasEarlyClaimed",
            "type": "bool",
            "internalType": "bool"
          }
        ],
        "internalType": "struct IBUILDClaim.UserState[]"
      }
    ],
    "stateMutability": "view"
  },
  {
    "name": "supportsInterface",
    "type": "function",
    "inputs": [
      {
        "name": "interfaceId",
        "type": "bytes4",
        "internalType": "bytes4"
      }
    ],
    "outputs": [
      {
        "name": "",
        "type": "bool",
        "internalType": "bool"
      }
    ],
    "stateMutability": "pure"
  },
  {
    "name": "typeAndVersion",
    "type": "function",
    "inputs": [],
    "outputs": [
      {
        "name": "",
        "type": "string",
        "internalType": "string"
      }
    ],
    "stateMutability": "view"
  },
  {
    "name": "withdraw",
    "type": "function",
    "inputs": [],
    "outputs": [],
    "stateMutability": "nonpayable"
  }
]

Source code and metadata: Sourcify.

The source code belongs to the authors of the contract.