Address Contract Verified
Address
0x7207dA4d2C296F16568c7f128CF2685a5d2cE452
Balance
0 ETH
Nonce
1
Code Size
1100 bytes
Creator
0x91330EA6...FA1d at tx 0x0eb387ad...6e65c0
Indexed Transactions
0
Contract Bytecode
1100 bytes
0x60806040818152600436101561001457600080fd5b600091823560e01c90816336f272661461031b575080634ddd108a146102ad57806394b918de146100bf5763f4b9fa751461004e57600080fd5b346100bb57817ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc3601126100bb576020905173ffffffffffffffffffffffffffffffffffffffff7f0000000000000000000000006b175474e89094c44da98b954eedeac495271d0f168152f35b5080fd5b50346100bb57602090817ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc3601126102a9576004359073ffffffffffffffffffffffffffffffffffffffff9181517f23b872dd000000000000000000000000000000000000000000000000000000008152336004820152837f0000000000000000000000002625bfb6ad9840c2c0abb48f150eb9158393c466166024820152816044820152848160648189887f0000000000000000000000006b175474e89094c44da98b954eedeac495271d0f165af1801561029f57610282575b50600a810290808204600a14901517156102555760456044859287855196879485937fa9059cbb0000000000000000000000000000000000000000000000000000000085523360048601520460248401527f000000000000000000000000b162caa6b63de33edc5d0a14b901fb6a54ee6b8f165af190811561024c575061021f578280f35b8161023e92903d10610245575b6102368183610389565b8101906103f9565b5038808280f35b503d61022c565b513d85823e3d90fd5b6024857f4e487b710000000000000000000000000000000000000000000000000000000081526011600452fd5b61029890853d8711610245576102368183610389565b503861019a565b83513d88823e3d90fd5b8280fd5b50346100bb57817ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc3601126100bb576020905173ffffffffffffffffffffffffffffffffffffffff7f000000000000000000000000b162caa6b63de33edc5d0a14b901fb6a54ee6b8f168152f35b8390346100bb57817ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc3601126100bb5760209073ffffffffffffffffffffffffffffffffffffffff7f0000000000000000000000002625bfb6ad9840c2c0abb48f150eb9158393c466168152f35b90601f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0910116810190811067ffffffffffffffff8211176103ca57604052565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b90816020910312610411575180151581036104115790565b600080fdfea26469706673582212204512fb3040ff56993834f784917f08ae61a32f943a64f1ed479dcdd5c20413d764736f6c63430008190033
Verified Source Code Full Match
Compiler: v0.8.25+commit.b61c2a91
EVM: paris
Optimization: Yes (999999 runs)
MoneyFixedSwap.sol 23 lines
// SPDX-License-Identifier: GPL-2.0-or-later
pragma solidity ^0.8.0;
import {IERC20} from "./interfaces/IERC20.sol";
/// @dev Contract which swaps DAI for $MONEY at a fixed rate (6.9)
/// sending any DAI it receives to the IMF Multisig
contract MoneyFixedSwap {
IERC20 immutable public dai;
IERC20 immutable public money;
address immutable public imfMultisig;
constructor(IERC20 _dai, IERC20 _money, address _imfMultisig) {
dai = _dai;
money = _money;
imfMultisig = _imfMultisig;
}
function swap(uint256 daiAmount) external {
dai.transferFrom(msg.sender, imfMultisig, daiAmount);
money.transfer(msg.sender, daiAmount * 10 / 69);
}
}
IERC20.sol 79 lines
// SPDX-License-Identifier: GPL-2.0-or-later
pragma solidity >=0.5.0;
/**
* @dev Interface of the ERC-20 standard as defined in the ERC.
*/
interface IERC20 {
/**
* @dev Emitted when `value` tokens are moved from one account (`from`) to
* another (`to`).
*
* Note that `value` may be zero.
*/
event Transfer(address indexed from, address indexed to, uint256 value);
/**
* @dev Emitted when the allowance of a `spender` for an `owner` is set by
* a call to {approve}. `value` is the new allowance.
*/
event Approval(address indexed owner, address indexed spender, uint256 value);
/**
* @dev Returns the value of tokens in existence.
*/
function totalSupply() external view returns (uint256);
/**
* @dev Returns the value of tokens owned by `account`.
*/
function balanceOf(address account) external view returns (uint256);
/**
* @dev Moves a `value` amount of tokens from the caller's account to `to`.
*
* Returns a boolean value indicating whether the operation succeeded.
*
* Emits a {Transfer} event.
*/
function transfer(address to, uint256 value) external returns (bool);
/**
* @dev Returns the remaining number of tokens that `spender` will be
* allowed to spend on behalf of `owner` through {transferFrom}. This is
* zero by default.
*
* This value changes when {approve} or {transferFrom} are called.
*/
function allowance(address owner, address spender) external view returns (uint256);
/**
* @dev Sets a `value` amount of tokens as the allowance of `spender` over the
* caller's tokens.
*
* Returns a boolean value indicating whether the operation succeeded.
*
* IMPORTANT: Beware that changing an allowance with this method brings the risk
* that someone may use both the old and the new allowance by unfortunate
* transaction ordering. One possible solution to mitigate this race
* condition is to first reduce the spender's allowance to 0 and set the
* desired value afterwards:
* https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729
*
* Emits an {Approval} event.
*/
function approve(address spender, uint256 value) external returns (bool);
/**
* @dev Moves a `value` amount of tokens from `from` to `to` using the
* allowance mechanism. `value` is then deducted from the caller's
* allowance.
*
* Returns a boolean value indicating whether the operation succeeded.
*
* Emits a {Transfer} event.
*/
function transferFrom(address from, address to, uint256 value) external returns (bool);
function decimals() external view returns (uint8);
}
Read Contract
dai 0xf4b9fa75 → address
imfMultisig 0x36f27266 → address
money 0x4ddd108a → address
Write Contract 1 functions
These functions modify contract state and require a wallet transaction to execute.
swap 0x94b918de
uint256 daiAmount
Recent Transactions
No transactions found for this address