Contract 0x5BA443267c09578bfd87e033a401F69d37Fe677e 3

 
Txn Hash Method
Block
From
To
Value [Txn Fee]
0x4e03ef5928a047632e5a5816782cdfcd7c538f79858d57bf74210651cf3cec380x6080610479599722022-03-15 22:16:18198 days 18 hrs ago0x8286dc6df929c4bfa4f6951cab4dae2ec02d4d72 IN  Create: Vyper_contract0 ETH0.001538740846 ETH
[ Download CSV Export 
Latest 25 internal transaction
Parent Txn Hash Block From To Value
0x66a06bdadea3cf1097a74ca86980fc0dcc45024a8f56cc758fdd4032c260a8a4276139082022-09-30 14:08:522 hrs 45 mins ago 0x5ba443267c09578bfd87e033a401f69d37fe677e 0x6b5f15e939c8d797e6bd8d5ffda24edec655d08d0 ETH
0x66a06bdadea3cf1097a74ca86980fc0dcc45024a8f56cc758fdd4032c260a8a4276139082022-09-30 14:08:522 hrs 45 mins ago 0x0aae77df7609933c9d9c96f1132c7d9a2bb4386e 0x5ba443267c09578bfd87e033a401f69d37fe677e0 ETH
0x66a06bdadea3cf1097a74ca86980fc0dcc45024a8f56cc758fdd4032c260a8a4276139082022-09-30 14:08:522 hrs 45 mins ago 0x5ba443267c09578bfd87e033a401f69d37fe677e 0x6b5f15e939c8d797e6bd8d5ffda24edec655d08d0 ETH
0x66a06bdadea3cf1097a74ca86980fc0dcc45024a8f56cc758fdd4032c260a8a4276139082022-09-30 14:08:522 hrs 45 mins ago 0x0aae77df7609933c9d9c96f1132c7d9a2bb4386e 0x5ba443267c09578bfd87e033a401f69d37fe677e0 ETH
0x66a06bdadea3cf1097a74ca86980fc0dcc45024a8f56cc758fdd4032c260a8a4276139082022-09-30 14:08:522 hrs 45 mins ago 0x5ba443267c09578bfd87e033a401f69d37fe677e 0x6b5f15e939c8d797e6bd8d5ffda24edec655d08d0 ETH
0x66a06bdadea3cf1097a74ca86980fc0dcc45024a8f56cc758fdd4032c260a8a4276139082022-09-30 14:08:522 hrs 45 mins ago 0x0aae77df7609933c9d9c96f1132c7d9a2bb4386e 0x5ba443267c09578bfd87e033a401f69d37fe677e0 ETH
0xdb356c96b6a6f9536ea3c5de3d22ff06b620c3fcc35228d2c5d819ed483b4c4a276135582022-09-30 14:06:552 hrs 47 mins ago 0x5ba443267c09578bfd87e033a401f69d37fe677e 0x6b5f15e939c8d797e6bd8d5ffda24edec655d08d0 ETH
0xdb356c96b6a6f9536ea3c5de3d22ff06b620c3fcc35228d2c5d819ed483b4c4a276135582022-09-30 14:06:552 hrs 47 mins ago 0x0aae77df7609933c9d9c96f1132c7d9a2bb4386e 0x5ba443267c09578bfd87e033a401f69d37fe677e0 ETH
0x28ada7ad11e906022652dc2a11bc95af1a8fdd48f56e4b01699f2a63cd406723275780822022-09-30 10:12:326 hrs 41 mins ago 0x5ba443267c09578bfd87e033a401f69d37fe677e 0x6b5f15e939c8d797e6bd8d5ffda24edec655d08d0 ETH
0x28ada7ad11e906022652dc2a11bc95af1a8fdd48f56e4b01699f2a63cd406723275780822022-09-30 10:12:326 hrs 41 mins ago 0xf287c37a433a9d5162898a94cf69827359bad148 0x5ba443267c09578bfd87e033a401f69d37fe677e0 ETH
0x28ada7ad11e906022652dc2a11bc95af1a8fdd48f56e4b01699f2a63cd406723275780822022-09-30 10:12:326 hrs 41 mins ago 0x5ba443267c09578bfd87e033a401f69d37fe677e 0x6b5f15e939c8d797e6bd8d5ffda24edec655d08d0 ETH
0x28ada7ad11e906022652dc2a11bc95af1a8fdd48f56e4b01699f2a63cd406723275780822022-09-30 10:12:326 hrs 41 mins ago 0xf287c37a433a9d5162898a94cf69827359bad148 0x5ba443267c09578bfd87e033a401f69d37fe677e0 ETH
0x28ada7ad11e906022652dc2a11bc95af1a8fdd48f56e4b01699f2a63cd406723275780822022-09-30 10:12:326 hrs 41 mins ago 0x5ba443267c09578bfd87e033a401f69d37fe677e 0x6b5f15e939c8d797e6bd8d5ffda24edec655d08d0 ETH
0x28ada7ad11e906022652dc2a11bc95af1a8fdd48f56e4b01699f2a63cd406723275780822022-09-30 10:12:326 hrs 41 mins ago 0xf287c37a433a9d5162898a94cf69827359bad148 0x5ba443267c09578bfd87e033a401f69d37fe677e0 ETH
0x3d19ad4833dbfda406aafa83cd1c0e1b51757ecbbfa4716c32a3c457da6b49f5275778242022-09-30 10:10:526 hrs 43 mins ago 0x5ba443267c09578bfd87e033a401f69d37fe677e 0x6b5f15e939c8d797e6bd8d5ffda24edec655d08d0 ETH
0x3d19ad4833dbfda406aafa83cd1c0e1b51757ecbbfa4716c32a3c457da6b49f5275778242022-09-30 10:10:526 hrs 43 mins ago 0x12872ce4b8fcc02cbcc3266d11ef5135d8824a8f 0x5ba443267c09578bfd87e033a401f69d37fe677e0 ETH
0x11876a4faf3996be1abc48cca2a29fc8f1ebbc46a15d6aefa3e6b81467254f4c275777722022-09-30 10:10:286 hrs 43 mins ago 0x5ba443267c09578bfd87e033a401f69d37fe677e 0x6b5f15e939c8d797e6bd8d5ffda24edec655d08d0 ETH
0x11876a4faf3996be1abc48cca2a29fc8f1ebbc46a15d6aefa3e6b81467254f4c275777722022-09-30 10:10:286 hrs 43 mins ago 0xf287c37a433a9d5162898a94cf69827359bad148 0x5ba443267c09578bfd87e033a401f69d37fe677e0 ETH
0xc961b8abec11aee514c43e6bbf46a8855444191c2bc4a38eae0ab5bcdceccd1d275664132022-09-30 8:58:077 hrs 56 mins ago 0x5ba443267c09578bfd87e033a401f69d37fe677e 0x6b5f15e939c8d797e6bd8d5ffda24edec655d08d0 ETH
0xc961b8abec11aee514c43e6bbf46a8855444191c2bc4a38eae0ab5bcdceccd1d275664132022-09-30 8:58:077 hrs 56 mins ago 0x67350769c7fab430894911f29a1c2b1211a75aed 0x5ba443267c09578bfd87e033a401f69d37fe677e0 ETH
0xffa6fb244b96aca598d88e3415004490b1daf3db2d4a7b78f1c480e08218d1aa274835652022-09-29 21:13:4619 hrs 40 mins ago 0x5ba443267c09578bfd87e033a401f69d37fe677e 0x6b5f15e939c8d797e6bd8d5ffda24edec655d08d0 ETH
0xffa6fb244b96aca598d88e3415004490b1daf3db2d4a7b78f1c480e08218d1aa274835652022-09-29 21:13:4619 hrs 40 mins ago 0xf287c37a433a9d5162898a94cf69827359bad148 0x5ba443267c09578bfd87e033a401f69d37fe677e0 ETH
0xcc413c2f7fbc359fb8041ac609e966c39949cdc2913c4669af641ce3f9fc43d7274829742022-09-29 21:05:3919 hrs 48 mins ago 0x5ba443267c09578bfd87e033a401f69d37fe677e 0x6b5f15e939c8d797e6bd8d5ffda24edec655d08d0 ETH
0xcc413c2f7fbc359fb8041ac609e966c39949cdc2913c4669af641ce3f9fc43d7274829742022-09-29 21:05:3919 hrs 48 mins ago 0xf287c37a433a9d5162898a94cf69827359bad148 0x5ba443267c09578bfd87e033a401f69d37fe677e0 ETH
0xf9cfbcde128e589bafdcb7c4a98894704442eff29c03246ca54f9ddb6e8acac5274829502022-09-29 21:05:1319 hrs 49 mins ago 0x5ba443267c09578bfd87e033a401f69d37fe677e 0x6b5f15e939c8d797e6bd8d5ffda24edec655d08d0 ETH
[ Download CSV Export 
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
Vyper_contract

Compiler Version
vyper:0.2.15

Optimization Enabled:
N/A

Other Settings:
, MIT license

Contract Source Code (Vyper language format)

# @version 0.2.15
"""
@title Voting Escrow Delegation Proxy
@author Curve Finance
@license MIT
"""

from vyper.interfaces import ERC20


interface VeDelegation:
    def adjusted_balance_of(_account: address) -> uint256: view


event CommitAdmins:
    ownership_admin: address
    emergency_admin: address

event ApplyAdmins:
    ownership_admin: address
    emergency_admin: address

event DelegationSet:
    delegation: address


voting_escrow: public(address)
delegation: public(address)

emergency_admin: public(address)
ownership_admin: public(address)
future_emergency_admin: public(address)
future_ownership_admin: public(address)


@external
def __init__(_delegation: address, _o_admin: address, _e_admin: address, _voting_escrow: address):
    self.delegation = _delegation
    self.voting_escrow = _voting_escrow

    self.ownership_admin = _o_admin
    self.emergency_admin = _e_admin

    log DelegationSet(_delegation)


@view
@external
def adjusted_balance_of(_account: address) -> uint256:
    """
    @notice Get the adjusted veCRV balance from the active boost delegation contract
    @param _account The account to query the adjusted veCRV balance of
    @return veCRV balance
    """
    _delegation: address = self.delegation
    if _delegation == ZERO_ADDRESS:
        return ERC20(self.voting_escrow).balanceOf(_account)
    return VeDelegation(_delegation).adjusted_balance_of(_account)


@external
def kill_delegation():
    """
    @notice Set delegation contract to 0x00, disabling boost delegation
    @dev Callable by the emergency admin in case of an issue with the delegation logic
    """
    assert msg.sender in [self.ownership_admin, self.emergency_admin]

    self.delegation = ZERO_ADDRESS
    log DelegationSet(ZERO_ADDRESS)


@external
def set_delegation(_delegation: address):
    """
    @notice Set the delegation contract
    @dev Only callable by the ownership admin
    @param _delegation `VotingEscrowDelegation` deployment address
    """
    assert msg.sender == self.ownership_admin

    # call `adjusted_balance_of` to make sure it works
    VeDelegation(_delegation).adjusted_balance_of(msg.sender)

    self.delegation = _delegation
    log DelegationSet(_delegation)


@external
def commit_set_admins(_o_admin: address, _e_admin: address):
    """
    @notice Set ownership admin to `_o_admin` and emergency admin to `_e_admin`
    @param _o_admin Ownership admin
    @param _e_admin Emergency admin
    """
    assert msg.sender == self.ownership_admin, "Access denied"

    self.future_ownership_admin = _o_admin
    self.future_emergency_admin = _e_admin

    log CommitAdmins(_o_admin, _e_admin)


@external
def apply_set_admins():
    """
    @notice Apply the effects of `commit_set_admins`
    """
    assert msg.sender == self.ownership_admin, "Access denied"

    _o_admin: address = self.future_ownership_admin
    _e_admin: address = self.future_emergency_admin
    self.ownership_admin = _o_admin
    self.emergency_admin = _e_admin

    log ApplyAdmins(_o_admin, _e_admin)

Contract ABI

[{"name":"CommitAdmins","inputs":[{"name":"ownership_admin","type":"address","indexed":false},{"name":"emergency_admin","type":"address","indexed":false}],"anonymous":false,"type":"event"},{"name":"ApplyAdmins","inputs":[{"name":"ownership_admin","type":"address","indexed":false},{"name":"emergency_admin","type":"address","indexed":false}],"anonymous":false,"type":"event"},{"name":"DelegationSet","inputs":[{"name":"delegation","type":"address","indexed":false}],"anonymous":false,"type":"event"},{"stateMutability":"nonpayable","type":"constructor","inputs":[{"name":"_delegation","type":"address"},{"name":"_o_admin","type":"address"},{"name":"_e_admin","type":"address"},{"name":"_voting_escrow","type":"address"}],"outputs":[]},{"stateMutability":"view","type":"function","name":"adjusted_balance_of","inputs":[{"name":"_account","type":"address"}],"outputs":[{"name":"","type":"uint256"}],"gas":9489},{"stateMutability":"nonpayable","type":"function","name":"kill_delegation","inputs":[],"outputs":[],"gas":26337},{"stateMutability":"nonpayable","type":"function","name":"set_delegation","inputs":[{"name":"_delegation","type":"address"}],"outputs":[],"gas":41322},{"stateMutability":"nonpayable","type":"function","name":"commit_set_admins","inputs":[{"name":"_o_admin","type":"address"},{"name":"_e_admin","type":"address"}],"outputs":[],"gas":74708},{"stateMutability":"nonpayable","type":"function","name":"apply_set_admins","inputs":[],"outputs":[],"gas":78756},{"stateMutability":"view","type":"function","name":"voting_escrow","inputs":[],"outputs":[{"name":"","type":"address"}],"gas":2538},{"stateMutability":"view","type":"function","name":"delegation","inputs":[],"outputs":[{"name":"","type":"address"}],"gas":2568},{"stateMutability":"view","type":"function","name":"emergency_admin","inputs":[],"outputs":[{"name":"","type":"address"}],"gas":2598},{"stateMutability":"view","type":"function","name":"ownership_admin","inputs":[],"outputs":[{"name":"","type":"address"}],"gas":2628},{"stateMutability":"view","type":"function","name":"future_emergency_admin","inputs":[],"outputs":[{"name":"","type":"address"}],"gas":2658},{"stateMutability":"view","type":"function","name":"future_ownership_admin","inputs":[],"outputs":[{"name":"","type":"address"}],"gas":2688}]

60806104a26101403960206104a260c03960c05160a01c61049d57602060206104a20160c03960c05160a01c61049d57602060406104a20160c03960c05160a01c61049d57602060606104a20160c03960c05160a01c61049d57610140516001556101a0516000556101605160035561018051600255610140516101c0527f963001cf3a0c5cdcfc26b2710abe2fe859b3565482158b7cb34f59b6eaff521260206101c0a161048556600436101561000d576103d1565b600035601c52600051346103d75763bbf7408a8114156100bb5760043560a01c6103d757600154610140526101405161007d5760206101e060246370a08231610160526004356101805261017c6000545afa156103d757601f3d11156103d7576000506101e05160005260206000f35b60206101e0602463bbf7408a610160526004356101805261017c610140515afa156103d757601f3d11156103d7576000506101e05160005260206000f35b634b74efb781141561015757600354610160526002546101805260006101405261014061012060006002818352015b6101205160200261016001513314156101065760018352610117565b5b81516001018083528114156100ea575b50505061014051156103d75760006001556000610140527f963001cf3a0c5cdcfc26b2710abe2fe859b3565482158b7cb34f59b6eaff52126020610140a1005b63f4b446a38114156101df5760043560a01c6103d7576003543314156103d75760206101c0602463bbf7408a61014052336101605261015c6004355afa156103d757601f3d11156103d7576000506101c050600435600155600435610140527f963001cf3a0c5cdcfc26b2710abe2fe859b3565482158b7cb34f59b6eaff52126020610140a1005b63e3a8d3ab8114156102905760043560a01c6103d75760243560a01c6103d757600354331461024d576308c379a061014052602061016052600d610180527f4163636573732064656e696564000000000000000000000000000000000000006101a05261018050606461015cfd5b60043560055560243560045560043561014052602435610160527f8f5425b30e6270c1011973f0ccf6d7795cc10623631523e4c45d2837d337d5746040610140a1005b636189392181141561033f5760035433146102ea576308c379a061014052602061016052600d610180527f4163636573732064656e696564000000000000000000000000000000000000006101a05261018050606461015cfd5b600554610140526004546101605261014051600355610160516002556101405161018052610160516101a0527fe8d7597c306457cd1fa4eb0e165a1a4c3aea9808e274ea97c6b5d9f73a3c477f6040610180a1005b63dfe050318114156103575760005460005260206000f35b63df5cf72381141561036f5760015460005260206000f35b63680c77838114156103875760025460005260206000f35b6347c8715f81141561039f5760035460005260206000f35b635866507a8114156103b75760045460005260206000f35b633c2fcbf48114156103cf5760055460005260206000f35b505b60006000fd5b600080fd5b6100a9610485036100a96000396100a9610485036000f35b600080fd0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000b982841d8caf7ccc1b5c8ec414347316f54a06c9000000000000000000000000b982841d8caf7ccc1b5c8ec414347316f54a06c90000000000000000000000006b5f15e939c8d797e6bd8d5ffda24edec655d08d

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

0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000b982841d8caf7ccc1b5c8ec414347316f54a06c9000000000000000000000000b982841d8caf7ccc1b5c8ec414347316f54a06c90000000000000000000000006b5f15e939c8d797e6bd8d5ffda24edec655d08d

-----Decoded View---------------
Arg [0] : _delegation (address): 0x0000000000000000000000000000000000000000
Arg [1] : _o_admin (address): 0xb982841d8caf7ccc1b5c8ec414347316f54a06c9
Arg [2] : _e_admin (address): 0xb982841d8caf7ccc1b5c8ec414347316f54a06c9
Arg [3] : _voting_escrow (address): 0x6b5f15e939c8d797e6bd8d5ffda24edec655d08d

-----Encoded View---------------
4 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000000
Arg [1] : 000000000000000000000000b982841d8caf7ccc1b5c8ec414347316f54a06c9
Arg [2] : 000000000000000000000000b982841d8caf7ccc1b5c8ec414347316f54a06c9
Arg [3] : 0000000000000000000000006b5f15e939c8d797e6bd8d5ffda24edec655d08d


Block Transaction Gas Used Reward
Age Block Fee Address BC Fee Address Voting Power Jailed Incoming
Block Uncle Number Difficulty Gas Used Reward
Loading
Make sure to use the "Vote Down" button for any spammy posts, and the "Vote Up" for interesting conversations.