This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
interface Lender { | |
function goWild() external; | |
} | |
contract FlashERC20 is ERC20 { | |
using SafeMath for uint256; | |
function flash(uint256 amount) external { | |
balances[msg.sender] = balances[msg.sender].add(amount); | |
Lender(msg.sender).goWild(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
pragma solidity ^0.4.6; | |
contract tokenRecipient {function receiveApproval(address _from, uint256 _value, address _token, bytes _extraData);} | |
contract MCAP { | |
/* Public variables of the token */ | |
string public standard = 'MCAP 1.0'; |