Contract 0xc168e40227e4ebd8c1cae80f7a55a4f0e6d66c97 4

 
 
Txn Hash Method
Block
From
To
Value [Txn Fee]
0x52a4f74c24e17e48f05339d87f83c236a3afb9fa9395a64e88a27b60003b53b0Approve338770042022-10-03 11:44:251 min ago0xbc26c0f82c30b8b6c28d025fd539da516ddbc570 IN  Dfyn Network: DFYN Token0 MATIC0.00159808968 30.69
0x983d534543bc062fa74916de2bb6f5b0b10a891f109016caceae6999cb148aa5Approve338769762022-10-03 11:43:252 mins ago0xf72390c118188d6706bb303606c06457f198bf79 IN  Dfyn Network: DFYN Token0 MATIC0.0016819256 32.3
0x99aab16ca5b51732ad48841505573e8ac88d9b6e6379a4765d671b059614f9edApprove338769712022-10-03 11:43:143 mins ago0xd2a1cafa7b982a4412a86c2d3a65579907ab11f5 IN  Dfyn Network: DFYN Token0 MATIC0.001640268001 31.50000002
0xcbc69bf99381cee3924e8034532ca3ff3ca1d18255b721e22dd1db9eb423d97bApprove338769212022-10-03 11:41:304 mins ago0x310c05dd878677016a53b1bedc528a4494e803bb IN  Dfyn Network: DFYN Token0 MATIC0.001640268 31.500000015
0x0246459085ea07db01f75864b5fd5c062052826971b35c490881bdf8ed84b51dApprove338768522022-10-03 11:39:077 mins ago0xf06fe90a05de1e0a60259f2bfdf6aa735f903d48 IN  Dfyn Network: DFYN Token0 MATIC0.0018225235
0xa31ad18a338c822dcbffc18a8a4d955768e59bc928f6757a413ebf04e348f1f3Approve338768122022-10-03 11:37:478 mins ago0xe9d384f81b712f5da8fa78a332a9d48a22bd342d IN  Dfyn Network: DFYN Token0 MATIC0.0018225235
0x1c544db1a2b2f502eeab5a37e275f48dd3737fdc8b624e54eedb62c2c8457300Approve338766182022-10-03 11:31:0715 mins ago0xb268e1dbc927be0e3176740ed6321217b59ca295 IN  Dfyn Network: DFYN Token0 MATIC0.001640268008 31.500000167
0xa5049e205f314aa3fb7098c160b50c07e2fe54ea95f4fc65227883e5904051f0Approve338765642022-10-03 11:29:1517 mins ago0x04eab62d3cb4c775a7334ef0093287c3a5166f33 IN  Dfyn Network: DFYN Token0 MATIC0.0018225235
0xc94f219b491792b812e4230c059c8552546d2eb0830272bad1b82d6f7ecc80d0Approve338765522022-10-03 11:28:5117 mins ago0xacc7f9b529b33c337bca7fded7cf3aeb9a35bf98 IN  Dfyn Network: DFYN Token0 MATIC0.00168244632 32.31
0x5cbcfe54b54217e88430b2a6972ffd9745964ea640be4a786601b787bad3b2cdApprove338764862022-10-03 11:26:3519 mins ago0x5029a5fb5e658dfcc8fcd038d422770feeccffd3 IN  Dfyn Network: DFYN Token0 MATIC0.001640268021 31.50000041
0x269c8beea6f59568b61a1ec802addf4e6c1472ae13e1d91ceaead2a15d8cae80Approve338764852022-10-03 11:26:3319 mins ago0xd9610661950cf4c3bbcd882106888e6929fde554 IN  Dfyn Network: DFYN Token0 MATIC0.0018225235
0x862bff4018f9ae79926d1a75436d6c8d13b65db4715c60d813280619080d3c15Approve338762992022-10-03 11:20:0926 mins ago0x1d5d3fb55fb5d87bcaa93785defa1cb626d3f6e6 IN  Dfyn Network: DFYN Token0 MATIC0.0018225235
0x8fc7163188cf73b2678ddf4ab8ca778c7ac7cfba1a1a9a50568fad58dc8a2a80Approve338761962022-10-03 11:16:3529 mins ago0x4a90aa7c6801ef3d41c59a6172893a5dae2486da IN  Dfyn Network: DFYN Token0 MATIC0.0018225235
0x61750ff7a89ca749ec13486d71a3c1d9875ffe99d7ba52e08813484f74da3082Approve338760992022-10-03 11:13:1733 mins ago0xdb94da1a5e00e190e53f1da530f769d8e5843e07 IN  Dfyn Network: DFYN Token0 MATIC0.001562160001 30.00000002
0x2f490234aa2a6307d3cce94651dac08d3761d7f38a2375164a2e54537e3bf968Approve338760082022-10-03 11:10:0736 mins ago0x9ad2450644631e33881440781e2fe5899910db6e IN  Dfyn Network: DFYN Token0 MATIC0.0018225235
0x10efd004e6f1fd401480c39c03e9ef09229bfbc9be13f639c710a34815d3d0f7Approve338759802022-10-03 11:09:1137 mins ago0x7adbd800d49d2a75a736c97cd32b1b9aeec3d24f IN  Dfyn Network: DFYN Token0 MATIC0.00158871672 30.51
0xfec12a1822bf59ed2fa01f1642223d07438e47427a8feacd6344f2a7f27467ddApprove338758562022-10-03 11:04:5541 mins ago0xabbd8562de664288c1733b770a20494fe4b14f68 IN  Dfyn Network: DFYN Token0 MATIC0.0018225235
0xf09762dc998fb3bf349d9d9d4bced9529a5425348d59f4df6b4bc9eba5683601Approve338757532022-10-03 11:01:2145 mins ago0xec7135aeaa6d79f3a2470e773b62918871f16787 IN  Dfyn Network: DFYN Token0 MATIC0.0018225235
0xeb041cd94cc836188ddc9a381f0176663f6811643e2069e17a64d6339604bb67Approve338756062022-10-03 10:56:1950 mins ago0xc1b5aa2c5a9529d5c1d82f56fa06edc6bed113bd IN  Dfyn Network: DFYN Token0 MATIC0.001640268001 31.500000024
0x2da88698cc33fc429d27d5d23c01b8c43cfe01e24555fb9f0f31bea8008da8c2Approve338755932022-10-03 10:55:5350 mins ago0xf8ef1ad4d8169fb57a785689b0b975f525ef765d IN  Dfyn Network: DFYN Token0 MATIC0.001562160001 30.000000024
0xfaa1bc78e0d462a5181bf73856bcc80ab752ef581a8124e59ec00fb4318a8864Approve338755762022-10-03 10:55:1551 mins ago0x7ca55a2cd52fba8e7eba2981ebea287b242ede3a IN  Dfyn Network: DFYN Token0 MATIC0.0018225235
0xccd036791d9abdd7ec81c6ac5df9d0c0a19c8f9c028dc03bfba5ed1a499bb176Approve338755012022-10-03 10:52:4153 mins ago0x48dfe8ba8a78926417a085329d0b41b621993823 IN  Dfyn Network: DFYN Token0 MATIC0.0018225235
0xe73606df583679a0c202b9734679f22d2a100dd29f621e738fb2ddc1fce8c2bfApprove338753142022-10-03 10:46:151 hr ago0x77b71774f4596913eb8d3b968e136960135314f4 IN  Dfyn Network: DFYN Token0 MATIC0.0018225235
0xfdee1f3152fecad36f86b76d8eac9469900eff68f8c402a17c03fab38ef56b36Approve338752972022-10-03 10:45:411 hr ago0x7edb74a70adcaac6b739b5610ea311d44c628015 IN  Dfyn Network: DFYN Token0 MATIC0.00159913112 30.71
0xd8c080d9ba85432ebd3f6fb6110b30641b331cf90bcdacc45deacbf14fd2f625Approve338752562022-10-03 10:44:151 hr 2 mins ago0xf28587309fe4df2c77fa8217cfdd13160f83b2b6 IN  Dfyn Network: DFYN Token0 MATIC0.00162829144 31.27
[ Download CSV Export 

OVERVIEW

DFYN is a gasless AMM Dex.

Parent Txn Hash Block From To Value
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
UChildERC20Proxy

Compiler Version
v0.6.6+commit.6c089d02

Optimization Enabled:
No with 200 runs

Other Settings:
default evmVersion, None license
/**
 *Submitted for verification at polygonscan.com on 2021-06-30
*/

// File: contracts/common/Proxy/IERCProxy.sol

pragma solidity 0.6.6;

interface IERCProxy {
    function proxyType() external pure returns (uint256 proxyTypeId);

    function implementation() external view returns (address codeAddr);
}

// File: contracts/common/Proxy/Proxy.sol

pragma solidity 0.6.6;


abstract contract Proxy is IERCProxy {
    function delegatedFwd(address _dst, bytes memory _calldata) internal {
        // solium-disable-next-line security/no-inline-assembly
        assembly {
            let result := delegatecall(
                sub(gas(), 10000),
                _dst,
                add(_calldata, 0x20),
                mload(_calldata),
                0,
                0
            )
            let size := returndatasize()

            let ptr := mload(0x40)
            returndatacopy(ptr, 0, size)

            // revert instead of invalid() bc if the underlying call failed with invalid() it already wasted gas.
            // if the call returned error data, forward it
            switch result
                case 0 {
                    revert(ptr, size)
                }
                default {
                    return(ptr, size)
                }
        }
    }

    function proxyType() external virtual override pure returns (uint256 proxyTypeId) {
        // Upgradeable proxy
        proxyTypeId = 2;
    }

    function implementation() external virtual override view returns (address);
}

// File: contracts/common/Proxy/UpgradableProxy.sol

pragma solidity 0.6.6;


contract UpgradableProxy is Proxy {
    event ProxyUpdated(address indexed _new, address indexed _old);
    event ProxyOwnerUpdate(address _new, address _old);

    bytes32 constant IMPLEMENTATION_SLOT = keccak256("matic.network.proxy.implementation");
    bytes32 constant OWNER_SLOT = keccak256("matic.network.proxy.owner");

    constructor(address _proxyTo) public {
        setProxyOwner(msg.sender);
        setImplementation(_proxyTo);
    }

    fallback() external payable {
        delegatedFwd(loadImplementation(), msg.data);
    }

    receive() external payable {
        delegatedFwd(loadImplementation(), msg.data);
    }

    modifier onlyProxyOwner() {
        require(loadProxyOwner() == msg.sender, "NOT_OWNER");
        _;
    }

    function proxyOwner() external view returns(address) {
        return loadProxyOwner();
    }

    function loadProxyOwner() internal view returns(address) {
        address _owner;
        bytes32 position = OWNER_SLOT;
        assembly {
            _owner := sload(position)
        }
        return _owner;
    }

    function implementation() external override view returns (address) {
        return loadImplementation();
    }

    function loadImplementation() internal view returns(address) {
        address _impl;
        bytes32 position = IMPLEMENTATION_SLOT;
        assembly {
            _impl := sload(position)
        }
        return _impl;
    }

    function transferProxyOwnership(address newOwner) public onlyProxyOwner {
        require(newOwner != address(0), "ZERO_ADDRESS");
        emit ProxyOwnerUpdate(newOwner, loadProxyOwner());
        setProxyOwner(newOwner);
    }

    function setProxyOwner(address newOwner) private {
        bytes32 position = OWNER_SLOT;
        assembly {
            sstore(position, newOwner)
        }
    }

    function updateImplementation(address _newProxyTo) public onlyProxyOwner {
        require(_newProxyTo != address(0x0), "INVALID_PROXY_ADDRESS");
        require(isContract(_newProxyTo), "DESTINATION_ADDRESS_IS_NOT_A_CONTRACT");

        emit ProxyUpdated(_newProxyTo, loadImplementation());
        
        setImplementation(_newProxyTo);
    }

    function updateAndCall(address _newProxyTo, bytes memory data) payable public onlyProxyOwner {
        updateImplementation(_newProxyTo);

        (bool success, bytes memory returnData) = address(this).call{value: msg.value}(data);
        require(success, string(returnData));
    }

    function setImplementation(address _newProxyTo) private {
        bytes32 position = IMPLEMENTATION_SLOT;
        assembly {
            sstore(position, _newProxyTo)
        }
    }
    
    function isContract(address _target) internal view returns (bool) {
        if (_target == address(0)) {
            return false;
        }

        uint256 size;
        assembly {
            size := extcodesize(_target)
        }
        return size > 0;
    }
}

// File: contracts/child/ChildToken/UpgradeableChildERC20/UChildERC20Proxy.sol

pragma solidity 0.6.6;


contract UChildERC20Proxy is UpgradableProxy {
    constructor(address _proxyTo)
        public
        UpgradableProxy(_proxyTo)
    {}
}

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address","name":"_proxyTo","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"_new","type":"address"},{"indexed":false,"internalType":"address","name":"_old","type":"address"}],"name":"ProxyOwnerUpdate","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"_new","type":"address"},{"indexed":true,"internalType":"address","name":"_old","type":"address"}],"name":"ProxyUpdated","type":"event"},{"stateMutability":"payable","type":"fallback"},{"inputs":[],"name":"implementation","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"proxyOwner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"proxyType","outputs":[{"internalType":"uint256","name":"proxyTypeId","type":"uint256"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferProxyOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_newProxyTo","type":"address"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"updateAndCall","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"_newProxyTo","type":"address"}],"name":"updateImplementation","outputs":[],"stateMutability":"nonpayable","type":"function"},{"stateMutability":"payable","type":"receive"}]

608060405234801561001057600080fd5b50604051610c85380380610c858339818101604052602081101561003357600080fd5b8101908080519060200190929190505050806100543361006a60201b60201c565b610063816100ab60201b60201c565b50506100cf565b600060405180807f6d617469632e6e6574776f726b2e70726f78792e6f776e6572000000000000008152506019019050604051809103902090508181555050565b60006040518080610c63602291396022019050604051809103902090508181555050565b610b85806100de6000396000f3fe6080604052600436106100595760003560e01c8063025313a21461010e578063025b22bc146101655780634555d5c9146101b65780635c60da1b146101e1578063d88ca2c814610238578063f1739cae14610313576100b6565b366100b6576100b4610069610364565b6000368080601f016020809104026020016040519081016040528093929190818152602001838380828437600081840152601f19601f82011690508083019250505050505050610390565b005b61010c6100c1610364565b6000368080601f016020809104026020016040519081016040528093929190818152602001838380828437600081840152601f19601f82011690508083019250505050505050610390565b005b34801561011a57600080fd5b506101236103ba565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b34801561017157600080fd5b506101b46004803603602081101561018857600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff1690602001909291905050506103c9565b005b3480156101c257600080fd5b506101cb6105df565b6040518082815260200191505060405180910390f35b3480156101ed57600080fd5b506101f66105e8565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b6103116004803603604081101561024e57600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff1690602001909291908035906020019064010000000081111561028b57600080fd5b82018360208201111561029d57600080fd5b803590602001918460018302840111640100000000831117156102bf57600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600081840152601f19601f8201169050808301925050505050505091929192905050506105f7565b005b34801561031f57600080fd5b506103626004803603602081101561033657600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050610813565b005b60008060006040518080610b2e6022913960220190506040518091039020905080549150819250505090565b600080825160208401856127105a03f43d604051816000823e82600081146103b6578282f35b8282fd5b60006103c4610a08565b905090565b3373ffffffffffffffffffffffffffffffffffffffff166103e8610a08565b73ffffffffffffffffffffffffffffffffffffffff1614610471576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260098152602001807f4e4f545f4f574e4552000000000000000000000000000000000000000000000081525060200191505060405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415610514576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260158152602001807f494e56414c49445f50524f58595f41444452455353000000000000000000000081525060200191505060405180910390fd5b61051d81610a51565b610572576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526025815260200180610b096025913960400191505060405180910390fd5b61057a610364565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167fd32d24edea94f55e932d9a008afc425a8561462d1b1f57bc6e508e9a6b9509e160405160405180910390a36105dc81610aa3565b50565b60006002905090565b60006105f2610364565b905090565b3373ffffffffffffffffffffffffffffffffffffffff16610616610a08565b73ffffffffffffffffffffffffffffffffffffffff161461069f576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260098152602001807f4e4f545f4f574e4552000000000000000000000000000000000000000000000081525060200191505060405180910390fd5b6106a8826103c9565b600060603073ffffffffffffffffffffffffffffffffffffffff1634846040518082805190602001908083835b602083106106f857805182526020820191506020810190506020830392506106d5565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d806000811461075a576040519150601f19603f3d011682016040523d82523d6000602084013e61075f565b606091505b509150915081819061080c576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825283818151815260200191508051906020019080838360005b838110156107d15780820151818401526020810190506107b6565b50505050905090810190601f1680156107fe5780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b5050505050565b3373ffffffffffffffffffffffffffffffffffffffff16610832610a08565b73ffffffffffffffffffffffffffffffffffffffff16146108bb576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260098152602001807f4e4f545f4f574e4552000000000000000000000000000000000000000000000081525060200191505060405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16141561095e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252600c8152602001807f5a45524f5f41444452455353000000000000000000000000000000000000000081525060200191505060405180910390fd5b7fdbe5fd65bcdbae152f24ab660ea68e72b4d4705b57b16e0caae994e214680ee281610988610a08565b604051808373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019250505060405180910390a1610a0581610ac7565b50565b600080600060405180807f6d617469632e6e6574776f726b2e70726f78792e6f776e65720000000000000081525060190190506040518091039020905080549150819250505090565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415610a905760009050610a9e565b6000823b9050600081119150505b919050565b60006040518080610b2e602291396022019050604051809103902090508181555050565b600060405180807f6d617469632e6e6574776f726b2e70726f78792e6f776e657200000000000000815250601901905060405180910390209050818155505056fe44455354494e4154494f4e5f414444524553535f49535f4e4f545f415f434f4e54524143546d617469632e6e6574776f726b2e70726f78792e696d706c656d656e746174696f6ea264697066735822122041ef759422fabf085e8197d08185f4d0cdb3a0ab3423629d2271c1c06c720f0664736f6c634300060600336d617469632e6e6574776f726b2e70726f78792e696d706c656d656e746174696f6e000000000000000000000000e877f0e46f3fd12da737e6e7e75dc4cdbcbbb5d2

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

000000000000000000000000e877f0e46f3fd12da737e6e7e75dc4cdbcbbb5d2

-----Decoded View---------------
Arg [0] : _proxyTo (address): 0xe877f0e46f3fd12da737e6e7e75dc4cdbcbbb5d2

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


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