ETH Price: $2,908.94 (+1.24%)
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
0x61028e51185272302023-11-08 12:26:59365 days ago1699446419IN
 Create: yPRISMA Airdrop Minter
0 ETH0.0052428225.54223072

View more zero value Internal Transactions in Advanced View mode

Advanced mode:
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
yPRISMA Airdrop Minter

Compiler Version
vyper:0.3.10

Optimization Enabled:
N/A

Other Settings:
GNU AGPLv3 license

Contract Source Code (Vyper language format)

# @version 0.3.10

"""
@title yPRISMA Airdrop Minter
@license GNU AGPLv3
@author Yearn Finance
"""

interface IYPRISMA:
    def delegate_mint(_recipient: address, _amount: uint256) -> uint256: nonpayable
    def ylocker() -> address: view

ylocker: public(immutable(address))
yprisma: public(immutable(address))

CLAIM_CONTRACTS: public(constant(address[2])) = [
    0x3ea03249B4D68Be92a8eda027C5ac12e6E419BEE, # 52 week lock (veCRV)
    0x2C533357664d8750e5F851f39B2534147F5578af, # 26 week lock (early users)
]

@external
def __init__(_yprisma: address):
    yprisma = _yprisma
    ylocker = IYPRISMA(_yprisma).ylocker()

@external
def claimCallback(_claimant: address, _receiver: address, _amount: uint256) -> bool:
    """
    @dev Allow callbacks from claim contracts.
    """
    assert msg.sender in CLAIM_CONTRACTS, "!authorized"
    assert _receiver == ylocker, "invalid receiver"
    IYPRISMA(yprisma).delegate_mint(_claimant, _amount * 10 ** 18) # Multiply amount by lockToTokenRatio
    return True

Contract Security Audit

Contract ABI

[{"stateMutability":"nonpayable","type":"constructor","inputs":[{"name":"_yprisma","type":"address"}],"outputs":[]},{"stateMutability":"nonpayable","type":"function","name":"claimCallback","inputs":[{"name":"_claimant","type":"address"},{"name":"_receiver","type":"address"},{"name":"_amount","type":"uint256"}],"outputs":[{"name":"","type":"bool"}]},{"stateMutability":"view","type":"function","name":"ylocker","inputs":[],"outputs":[{"name":"","type":"address"}]},{"stateMutability":"view","type":"function","name":"yprisma","inputs":[],"outputs":[{"name":"","type":"address"}]},{"stateMutability":"view","type":"function","name":"CLAIM_CONTRACTS","inputs":[{"name":"arg0","type":"uint256"}],"outputs":[{"name":"","type":"address"}]}]

61028e5150346100775760206102fe5f395f518060a01c6100775760405260405161028e52604051630bb1afc3606052602060606004607c845afa610046573d5f5f3e3d5ffd5b60203d10610077576060518060a01c6100775760a05260a090505161026e5261026e61007b610000396102ae610000f35b5f80fd5f3560e01c60026003820660011b61026801601e395f51565b630bb1afc38118610260573461026457602061026e60403960206040f3610260565b630d4b95168118610260573461026457602061028e60403960206040f3610260565b637e9f430181186100b957602436103417610264576020733ea03249b4d68be92a8eda027c5ac12e6e419bee604052732c533357664d8750e5f851f39b2534147f5578af6060526040600435600181116102645760051b81019050f35b63b398e227811861026057606436103417610264576004358060a01c610264576040526024358060a01c6102645760605233733ea03249b4d68be92a8eda027c5ac12e6e419bee811861010d576001610126565b732c533357664d8750e5f851f39b2534147f5578af8118155b905061018857600b60a0527f21617574686f72697a656400000000000000000000000000000000000000000060c05260a05060a0518060c001601f825f031636823750506308c379a06060526020608052601f19601f60a0510116604401607cfd5b602061026e5f395f5160605118156101f65760106080527f696e76616c69642072656365697665720000000000000000000000000000000060a0526080506080518060a001601f825f031636823750506308c379a06040526020606052601f19601f6080510116604401605cfd5b602061028e5f395f5163e3dae8aa60805260405160a052604435670de0b6b3a7640000810281670de0b6b3a764000082041861026457905060c052602060806044609c5f855af1610249573d5f5f3e3d5ffd5b60203d106102645760805050600160805260206080f35b5f5ffd5b5f80fd0018003a005c8419026e81061840a16576797065728300030a0015000000000000000000000000e3668873d944e4a949da05fc8bde419eff543882

Deployed Bytecode

0x5f3560e01c60026003820660011b61026801601e395f51565b630bb1afc38118610260573461026457602061026e60403960206040f3610260565b630d4b95168118610260573461026457602061028e60403960206040f3610260565b637e9f430181186100b957602436103417610264576020733ea03249b4d68be92a8eda027c5ac12e6e419bee604052732c533357664d8750e5f851f39b2534147f5578af6060526040600435600181116102645760051b81019050f35b63b398e227811861026057606436103417610264576004358060a01c610264576040526024358060a01c6102645760605233733ea03249b4d68be92a8eda027c5ac12e6e419bee811861010d576001610126565b732c533357664d8750e5f851f39b2534147f5578af8118155b905061018857600b60a0527f21617574686f72697a656400000000000000000000000000000000000000000060c05260a05060a0518060c001601f825f031636823750506308c379a06060526020608052601f19601f60a0510116604401607cfd5b602061026e5f395f5160605118156101f65760106080527f696e76616c69642072656365697665720000000000000000000000000000000060a0526080506080518060a001601f825f031636823750506308c379a06040526020606052601f19601f6080510116604401605cfd5b602061028e5f395f5163e3dae8aa60805260405160a052604435670de0b6b3a7640000810281670de0b6b3a764000082041861026457905060c052602060806044609c5f855af1610249573d5f5f3e3d5ffd5b60203d106102645760805050600160805260206080f35b5f5ffd5b5f80fd0018003a005c00000000000000000000000090be6dfea8c80c184c442a36e17cb2439aae25a7000000000000000000000000e3668873d944e4a949da05fc8bde419eff543882

Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)

000000000000000000000000e3668873d944e4a949da05fc8bde419eff543882

-----Decoded View---------------
Arg [0] : _yprisma (address): 0xe3668873D944E4A949DA05fc8bDE419eFF543882

-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 000000000000000000000000e3668873d944e4a949da05fc8bde419eff543882


Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

Block Uncle Number Difficulty Gas Used Reward
View All Uncles
Loading...
Loading
Loading...
Loading

Validator Index Block Amount
View All Withdrawals

Transaction Hash Block Value Eth2 PubKey Valid
View All Deposits
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.