S Price: $0.56821 (+9.77%)

Contract

0x13DFF1809D1E9ddf9Ac901F47817B7F45220A846

Overview

S Balance

Sonic LogoSonic LogoSonic Logo0 S

S Value

$0.00

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To

There are no matching entries

Please try again later

Parent Transaction Hash Block From To
View All Internal Transactions
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
Agent

Compiler Version
vyper:0.3.10

Optimization Enabled:
N/A

Other Settings:
default evmVersion, MIT license

Contract Source Code (Vyper language format)

# pragma version 0.3.10
"""
@title Agent
@author CurveFi
"""


struct Message:
    target: address
    data: Bytes[MAX_BYTES]


MAX_BYTES: constant(uint256) = 1024
MAX_MESSAGES: constant(uint256) = 8


RELAYER: public(immutable(address))


@external
def __init__():
    RELAYER = msg.sender


@external
def execute(_messages: DynArray[Message, MAX_MESSAGES]):
    """
    @notice Execute a sequence of messages.
    @param _messages An array of messages to be executed.
    """
    assert msg.sender == RELAYER

    for message in _messages:
        raw_call(message.target, message.data)

Contract Security Audit

Contract ABI

[{"stateMutability":"nonpayable","type":"constructor","inputs":[],"outputs":[]},{"stateMutability":"nonpayable","type":"function","name":"execute","inputs":[{"name":"_messages","type":"tuple[]","components":[{"name":"target","type":"address"},{"name":"data","type":"bytes"}]}],"outputs":[]},{"stateMutability":"view","type":"function","name":"RELAYER","inputs":[],"outputs":[{"name":"","type":"address"}]}]

6101663d81600a3d39f3fe710061012b515034610020573361012b5261012b6100246100003961014b610000f35b5f80fd5f3560e01c632483e7158118610022573461012757602061012b60403960206040f35b63baae8abf8118610123576044361034176101275760043560040160088135116101275780355f81600881116101275780156100ab57905b61044081026060018160051b602086010135602086010180358060a01c610127578252602081013581016104008135116101275760208135016020840181838237505050505060010181811861005a575b5050806040525050602061012b5f395f513318610127575f6040516008811161012757801561011f57905b61044081026060016104406122606104408360045afa5050612260515a6122805f5f8251602084015f8787f1905090509050610114573d5f5f3e3d5ffd5b6001018181186100d6575b5050005b5f5ffd5b5f80fd8419012b801820a16576797065728300030a0014

Deployed Bytecode

0xfe710061012b515034610020573361012b5261012b6100246100003961014b610000f35b5f80fd5f3560e01c632483e7158118610022573461012757602061012b60403960206040f35b63baae8abf8118610123576044361034176101275760043560040160088135116101275780355f81600881116101275780156100ab57905b61044081026060018160051b602086010135602086010180358060a01c610127578252602081013581016104008135116101275760208135016020840181838237505050505060010181811861005a575b5050806040525050602061012b5f395f513318610127575f6040516008811161012757801561011f57905b61044081026060016104406122606104408360045afa5050612260515a6122805f5f8251602084015f8787f1905090509050610114573d5f5f3e3d5ffd5b6001018181186100d6575b5050005b5f5ffd5b5f80fd8419012b801820a16576797065728300030a0014

Block Transaction 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

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.