Discover more of Etherscan's tools and services in one place.
Sponsored
Contract Source Code:
File 1 of 1 : Cashier
// SPDX-License-Identifier: MIT pragma solidity >=0.8.0; contract Cashier { address payable public coldWallet; constructor(address multiSigWallet) payable { coldWallet = payable(multiSigWallet); } function execute(address protocalAddress, bytes calldata data, uint256 sumPrice) public payable { require(protocalAddress != address(0) && protocalAddress != address(this), "invalid protocol address"); require(msg.value >= sumPrice * 1005 / 1000, "platform fee required"); coldWallet.transfer(sumPrice * 5 / 1000); (bool success, bytes memory result) = protocalAddress.call{value: sumPrice}(data); if(!success) _revertWithData(result); _returnWithData(result); } receive() external payable {} function _revertWithData(bytes memory data) private pure { assembly { revert(add(data, 32), mload(data)) } } function _returnWithData(bytes memory data) private pure { assembly { return(add(data, 32), mload(data)) } } }
Please enter a contract address above to load the contract details and source code.
Please DO NOT store any passwords or private keys here. A private note (up to 100 characters) can be saved and is useful for transaction tracking.
My Name Tag:
Private Note:
This website uses cookies to improve your experience. By continuing to use this website, you agree to its Terms and Privacy Policy.