More Info
Private Name Tags
ContractCreator
Latest 11 from a total of 11 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Claim To Convex ... | 21002858 | 114 days ago | IN | 0 ETH | 0.00094601 | ||||
Claim To Convex ... | 19860251 | 273 days ago | IN | 0 ETH | 0.00102663 | ||||
Claim To Convex ... | 19818405 | 279 days ago | IN | 0 ETH | 0.00107619 | ||||
Claim To Convex ... | 19163175 | 371 days ago | IN | 0 ETH | 0.00444378 | ||||
Claim To Convex ... | 18621123 | 447 days ago | IN | 0 ETH | 0.00610471 | ||||
Claim To Convex ... | 18536072 | 459 days ago | IN | 0 ETH | 0.01049464 | ||||
Claim To Convex ... | 18534262 | 459 days ago | IN | 0 ETH | 0.004884 | ||||
Claim To Convex ... | 18494992 | 465 days ago | IN | 0 ETH | 0.00271858 | ||||
Claim To Convex ... | 18494827 | 465 days ago | IN | 0 ETH | 0.00254244 | ||||
Claim To Convex ... | 18492696 | 465 days ago | IN | 0 ETH | 0.00468371 | ||||
Claim To Convex ... | 18491678 | 465 days ago | IN | 0 ETH | 0.00398872 |
View more zero value Internal Transactions in Advanced View mode
Advanced mode:
Loading...
Loading
Contract Source Code Verified (Exact Match)
Contract Name:
VestingClaim
Compiler Version
v0.8.19+commit.7dd6d404
Optimization Enabled:
Yes with 200 runs
Other Settings:
paris EvmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT pragma solidity 0.8.19; import "./interfaces/ITokenMinter.sol"; import "./interfaces/ITokenLocker.sol"; import "./interfaces/IPrismaVesting.sol"; contract VestingClaim{ address public immutable escrow; address public immutable prismaVesting; address public immutable convexproxy; address public immutable cvxprisma; event Claimed(address indexed _address, uint256 _amount); constructor(address _proxy, address _cvxprisma, address _escrow, address _prismaVesting){ convexproxy = _proxy; cvxprisma = _cvxprisma; escrow = _escrow; prismaVesting = _prismaVesting; } function claimToConvexFull() external{ claimToConvex(0); } function claimToConvex(uint256 _amount) public{ //get previous (uint256 beforeAmount,) = ITokenLocker(escrow).getAccountBalances(convexproxy); beforeAmount *= ITokenLocker(escrow).lockToTokenRatio(); //call claim IPrismaVesting(prismaVesting).lockFutureClaimsWithReceiver(msg.sender, convexproxy, _amount); //get difference (uint256 afterAmount,) = ITokenLocker(escrow).getAccountBalances(convexproxy); afterAmount *= ITokenLocker(escrow).lockToTokenRatio(); //mint ITokenMinter(cvxprisma).mint(msg.sender, afterAmount - beforeAmount); emit Claimed(msg.sender, afterAmount - beforeAmount); } }
// SPDX-License-Identifier: MIT pragma solidity 0.8.19; interface ITokenMinter{ function mint(address,uint256) external; function burn(address,uint256) external; function setOperator(address _operator, bool _active) external; }
// SPDX-License-Identifier: MIT pragma solidity 0.8.19; interface ITokenLocker { struct LockData { uint amount; uint weeksToUnlock; } function lock(address _account, uint256 _amount, uint256 _weeks) external returns (bool); function withdrawExpiredLocks(uint256 _weeks) external returns (bool); function withdrawWithPenalty(uint amountToWithdraw) external returns (uint); function getAccountBalances(address account) external view returns (uint256 locked, uint256 unlocked); function getAccountActiveLocks( address account, uint minWeeks ) external view returns (LockData[] memory lockData, uint frozenAmount); function getAccountWeightAt(address account, uint week) external view returns (uint256); function getTotalWeightAt(uint week) external view returns (uint256); function getWithdrawWithPenaltyAmounts(address account, uint amountToWithdraw) external view returns (uint amountWithdrawn, uint penaltyAmountPaid); function lockToTokenRatio() external view returns (uint256); function freeze() external; }
// SPDX-License-Identifier: MIT pragma solidity 0.8.19; //interface for Prisma Vesting. interface IPrismaVesting { function lockFutureClaimsWithReceiver( address account, address receiver, uint256 amount ) external; function setDelegateApproval(address _delegate, bool _isApproved) external; }
{ "remappings": [], "optimizer": { "enabled": true, "runs": 200 }, "evmVersion": "paris", "libraries": {}, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"address","name":"_proxy","type":"address"},{"internalType":"address","name":"_cvxprisma","type":"address"},{"internalType":"address","name":"_escrow","type":"address"},{"internalType":"address","name":"_prismaVesting","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"_address","type":"address"},{"indexed":false,"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"Claimed","type":"event"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"claimToConvex","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"claimToConvexFull","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"convexproxy","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"cvxprisma","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"escrow","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"prismaVesting","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"}]
Contract Creation Code
61010060405234801561001157600080fd5b506040516107553803806107558339810160408190526100309161006e565b6001600160a01b0393841660c05291831660e05282166080521660a0526100c2565b80516001600160a01b038116811461006957600080fd5b919050565b6000806000806080858703121561008457600080fd5b61008d85610052565b935061009b60208601610052565b92506100a960408601610052565b91506100b760608601610052565b905092959194509250565b60805160a05160c05160e05161061e610137600039600081816081015261046d01526000818160c40152818161015301528181610296015261033b01526000818160f301526102c801526000818161011a0152818161017e015281816101ef0152818161036701526103d7015261061e6000f3fe608060405234801561001057600080fd5b50600436106100625760003560e01c806318773ff3146100675780632abb7e661461007c578063373ae285146100bf5780636c0e762e146100e657806384f788b2146100ee578063e2fdcc1714610115575b600080fd5b61007a61007536600461054c565b61013c565b005b6100a37f000000000000000000000000000000000000000000000000000000000000000081565b6040516001600160a01b03909116815260200160405180910390f35b6100a37f000000000000000000000000000000000000000000000000000000000000000081565b61007a610540565b6100a37f000000000000000000000000000000000000000000000000000000000000000081565b6100a37f000000000000000000000000000000000000000000000000000000000000000081565b6040516367a5b10b60e01b81526001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000811660048301526000917f0000000000000000000000000000000000000000000000000000000000000000909116906367a5b10b906024016040805180830381865afa1580156101c6573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906101ea9190610565565b5090507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663c5438b1b6040518163ffffffff1660e01b8152600401602060405180830381865afa15801561024b573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061026f9190610589565b61027990826105b8565b604051634a41e48160e11b81523360048201526001600160a01b037f000000000000000000000000000000000000000000000000000000000000000081166024830152604482018590529192507f000000000000000000000000000000000000000000000000000000000000000090911690639483c90290606401600060405180830381600087803b15801561030e57600080fd5b505af1158015610322573d6000803e3d6000fd5b50506040516367a5b10b60e01b81526001600160a01b037f000000000000000000000000000000000000000000000000000000000000000081166004830152600093507f00000000000000000000000000000000000000000000000000000000000000001691506367a5b10b906024016040805180830381865afa1580156103ae573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906103d29190610565565b5090507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663c5438b1b6040518163ffffffff1660e01b8152600401602060405180830381865afa158015610433573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906104579190610589565b61046190826105b8565b90506001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000166340c10f193361049d85856105d5565b6040516001600160e01b031960e085901b1681526001600160a01b0390921660048301526024820152604401600060405180830381600087803b1580156104e357600080fd5b505af11580156104f7573d6000803e3d6000fd5b503392507fd8138f8a3f377c5259ca548e70e4c2de94f129f5a11036a15b69513cba2b426a915061052a905084846105d5565b60405190815260200160405180910390a2505050565b61054a600061013c565b565b60006020828403121561055e57600080fd5b5035919050565b6000806040838503121561057857600080fd5b505080516020909101519092909150565b60006020828403121561059b57600080fd5b5051919050565b634e487b7160e01b600052601160045260246000fd5b80820281158282048414176105cf576105cf6105a2565b92915050565b818103818111156105cf576105cf6105a256fea26469706673582212209210ee171076159ef051cf4033c7bd0372dc92dd1d4f601e0dd6a37db9cb697864736f6c634300081300330000000000000000000000008ad7a9e2b3cd9214f36cb871336d8ab34ddfdd5b00000000000000000000000034635280737b5bfe6c7dc2fc3065d60d66e781850000000000000000000000003f78544364c3eccdce4d9c89a630aea26122829d000000000000000000000000c72bc1a8cf9b1a218386df641d8be99b40436a0f
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106100625760003560e01c806318773ff3146100675780632abb7e661461007c578063373ae285146100bf5780636c0e762e146100e657806384f788b2146100ee578063e2fdcc1714610115575b600080fd5b61007a61007536600461054c565b61013c565b005b6100a37f00000000000000000000000034635280737b5bfe6c7dc2fc3065d60d66e7818581565b6040516001600160a01b03909116815260200160405180910390f35b6100a37f0000000000000000000000008ad7a9e2b3cd9214f36cb871336d8ab34ddfdd5b81565b61007a610540565b6100a37f000000000000000000000000c72bc1a8cf9b1a218386df641d8be99b40436a0f81565b6100a37f0000000000000000000000003f78544364c3eccdce4d9c89a630aea26122829d81565b6040516367a5b10b60e01b81526001600160a01b037f0000000000000000000000008ad7a9e2b3cd9214f36cb871336d8ab34ddfdd5b811660048301526000917f0000000000000000000000003f78544364c3eccdce4d9c89a630aea26122829d909116906367a5b10b906024016040805180830381865afa1580156101c6573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906101ea9190610565565b5090507f0000000000000000000000003f78544364c3eccdce4d9c89a630aea26122829d6001600160a01b031663c5438b1b6040518163ffffffff1660e01b8152600401602060405180830381865afa15801561024b573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061026f9190610589565b61027990826105b8565b604051634a41e48160e11b81523360048201526001600160a01b037f0000000000000000000000008ad7a9e2b3cd9214f36cb871336d8ab34ddfdd5b81166024830152604482018590529192507f000000000000000000000000c72bc1a8cf9b1a218386df641d8be99b40436a0f90911690639483c90290606401600060405180830381600087803b15801561030e57600080fd5b505af1158015610322573d6000803e3d6000fd5b50506040516367a5b10b60e01b81526001600160a01b037f0000000000000000000000008ad7a9e2b3cd9214f36cb871336d8ab34ddfdd5b81166004830152600093507f0000000000000000000000003f78544364c3eccdce4d9c89a630aea26122829d1691506367a5b10b906024016040805180830381865afa1580156103ae573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906103d29190610565565b5090507f0000000000000000000000003f78544364c3eccdce4d9c89a630aea26122829d6001600160a01b031663c5438b1b6040518163ffffffff1660e01b8152600401602060405180830381865afa158015610433573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906104579190610589565b61046190826105b8565b90506001600160a01b037f00000000000000000000000034635280737b5bfe6c7dc2fc3065d60d66e78185166340c10f193361049d85856105d5565b6040516001600160e01b031960e085901b1681526001600160a01b0390921660048301526024820152604401600060405180830381600087803b1580156104e357600080fd5b505af11580156104f7573d6000803e3d6000fd5b503392507fd8138f8a3f377c5259ca548e70e4c2de94f129f5a11036a15b69513cba2b426a915061052a905084846105d5565b60405190815260200160405180910390a2505050565b61054a600061013c565b565b60006020828403121561055e57600080fd5b5035919050565b6000806040838503121561057857600080fd5b505080516020909101519092909150565b60006020828403121561059b57600080fd5b5051919050565b634e487b7160e01b600052601160045260246000fd5b80820281158282048414176105cf576105cf6105a2565b92915050565b818103818111156105cf576105cf6105a256fea26469706673582212209210ee171076159ef051cf4033c7bd0372dc92dd1d4f601e0dd6a37db9cb697864736f6c63430008130033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
0000000000000000000000008ad7a9e2b3cd9214f36cb871336d8ab34ddfdd5b00000000000000000000000034635280737b5bfe6c7dc2fc3065d60d66e781850000000000000000000000003f78544364c3eccdce4d9c89a630aea26122829d000000000000000000000000c72bc1a8cf9b1a218386df641d8be99b40436a0f
-----Decoded View---------------
Arg [0] : _proxy (address): 0x8ad7a9e2B3Cd9214f36Cb871336d8ab34DdFdD5b
Arg [1] : _cvxprisma (address): 0x34635280737b5BFe6c7DC2FC3065D60d66e78185
Arg [2] : _escrow (address): 0x3f78544364c3eCcDCe4d9C89a630AEa26122829d
Arg [3] : _prismaVesting (address): 0xC72bc1a8cf9b1A218386df641d8bE99B40436A0f
-----Encoded View---------------
4 Constructor Arguments found :
Arg [0] : 0000000000000000000000008ad7a9e2b3cd9214f36cb871336d8ab34ddfdd5b
Arg [1] : 00000000000000000000000034635280737b5bfe6c7dc2fc3065d60d66e78185
Arg [2] : 0000000000000000000000003f78544364c3eccdce4d9c89a630aea26122829d
Arg [3] : 000000000000000000000000c72bc1a8cf9b1a218386df641d8be99b40436a0f
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 30 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|---|---|---|---|---|
ETH | 100.00% | $0.031283 | 8,083.1441 | $252.87 |
Loading...
Loading
[ Download: CSV Export ]
A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.