ETH Price: $3,640.17 (-0.27%)
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To

There are no matching entries

Please try again later

View more zero value Internal Transactions in Advanced View mode

Advanced mode:
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
AutomaticLogger

Compiler Version
v0.5.7+commit.6da8b019

Optimization Enabled:
Yes with 20000 runs

Other Settings:
default evmVersion
/**
 *Submitted for verification at Etherscan.io on 2020-04-08
*/

pragma solidity ^0.5.0;


contract AutomaticLogger {
    event CdpRepay(uint indexed cdpId, address indexed caller, uint amount, uint beforeRatio, uint afterRatio, address logger);
    event CdpBoost(uint indexed cdpId, address indexed caller, uint amount, uint beforeRatio, uint afterRatio, address logger);

    function logRepay(uint cdpId, address caller, uint amount, uint beforeRatio, uint afterRatio) public {
        emit CdpRepay(cdpId, caller, amount, beforeRatio, afterRatio, msg.sender);
    }

    function logBoost(uint cdpId, address caller, uint amount, uint beforeRatio, uint afterRatio) public {
    	emit CdpBoost(cdpId, caller, amount, beforeRatio, afterRatio, msg.sender);
    }
}

Contract Security Audit

Contract ABI

[{"constant":false,"inputs":[{"name":"cdpId","type":"uint256"},{"name":"caller","type":"address"},{"name":"amount","type":"uint256"},{"name":"beforeRatio","type":"uint256"},{"name":"afterRatio","type":"uint256"}],"name":"logRepay","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"cdpId","type":"uint256"},{"name":"caller","type":"address"},{"name":"amount","type":"uint256"},{"name":"beforeRatio","type":"uint256"},{"name":"afterRatio","type":"uint256"}],"name":"logBoost","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"anonymous":false,"inputs":[{"indexed":true,"name":"cdpId","type":"uint256"},{"indexed":true,"name":"caller","type":"address"},{"indexed":false,"name":"amount","type":"uint256"},{"indexed":false,"name":"beforeRatio","type":"uint256"},{"indexed":false,"name":"afterRatio","type":"uint256"},{"indexed":false,"name":"logger","type":"address"}],"name":"CdpRepay","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"cdpId","type":"uint256"},{"indexed":true,"name":"caller","type":"address"},{"indexed":false,"name":"amount","type":"uint256"},{"indexed":false,"name":"beforeRatio","type":"uint256"},{"indexed":false,"name":"afterRatio","type":"uint256"},{"indexed":false,"name":"logger","type":"address"}],"name":"CdpBoost","type":"event"}]

608060405234801561001057600080fd5b506101cd806100206000396000f3fe608060405234801561001057600080fd5b50600436106100365760003560e01c806362d139131461003b578063c8f6c5b114610088575b600080fd5b610086600480360360a081101561005157600080fd5b5080359073ffffffffffffffffffffffffffffffffffffffff60208201351690604081013590606081013590608001356100d3565b005b610086600480360360a081101561009e57600080fd5b5080359073ffffffffffffffffffffffffffffffffffffffff602082013516906040810135906060810135906080013561013a565b6040805184815260208101849052808201839052336060820152905173ffffffffffffffffffffffffffffffffffffffff86169187917fc911ced4a7d7aa9fd5dc1ee310d326493ba0eb4bd0a5f515eec16b2d941a482f9181900360800190a35050505050565b6040805184815260208101849052808201839052336060820152905173ffffffffffffffffffffffffffffffffffffffff86169187917ffbc5ff2d068eda02abfe8f453bb3a6b4709df1820b9f936384e7bd782d8789f89181900360800190a3505050505056fea165627a7a72305820bbbb297a4deff7231d9120b7e600ab9f915d13382ae936f029ff0f68340d6ea70029

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106100365760003560e01c806362d139131461003b578063c8f6c5b114610088575b600080fd5b610086600480360360a081101561005157600080fd5b5080359073ffffffffffffffffffffffffffffffffffffffff60208201351690604081013590606081013590608001356100d3565b005b610086600480360360a081101561009e57600080fd5b5080359073ffffffffffffffffffffffffffffffffffffffff602082013516906040810135906060810135906080013561013a565b6040805184815260208101849052808201839052336060820152905173ffffffffffffffffffffffffffffffffffffffff86169187917fc911ced4a7d7aa9fd5dc1ee310d326493ba0eb4bd0a5f515eec16b2d941a482f9181900360800190a35050505050565b6040805184815260208101849052808201839052336060820152905173ffffffffffffffffffffffffffffffffffffffff86169187917ffbc5ff2d068eda02abfe8f453bb3a6b4709df1820b9f936384e7bd782d8789f89181900360800190a3505050505056fea165627a7a72305820bbbb297a4deff7231d9120b7e600ab9f915d13382ae936f029ff0f68340d6ea70029

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

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.