Working tree is now the canonical repo. Off-chain play-money + trustless on-chain (FPMM AMM + CLOB via UMA settlement), AI market factory, creator/social/distribution, mobile shell + push, one-command demo + deploy-kit. Secrets excluded (see ENV-AND-KEYS.md). Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
18 lines
487 B
Solidity
18 lines
487 B
Solidity
// Copyright (C) 2020 d-xo
|
|
// SPDX-License-Identifier: AGPL-3.0-only
|
|
|
|
pragma solidity >=0.6.12;
|
|
|
|
import {ERC20} from "./ERC20.sol";
|
|
|
|
contract RevertToZeroToken is ERC20 {
|
|
// --- Init ---
|
|
constructor(uint _totalSupply) ERC20(_totalSupply) public {}
|
|
|
|
// --- Token ---
|
|
function transferFrom(address src, address dst, uint wad) override public returns (bool) {
|
|
require(dst != address(0), "transfer-to-zero");
|
|
return super.transferFrom(src, dst, wad);
|
|
}
|
|
}
|