文件 1 的 15:Blacklisted.sol
pragma solidity 0.7.5;
import "@openzeppelin/contracts/access/Ownable.sol";
abstract contract Blacklisted is Ownable {
mapping (address => bool) public blacklist;
event BlacklistedWallet(address wallet, bool status);
function setupBlacklist(address[] calldata _addresses, bool[] calldata _statuses) external onlyOwner {
uint256 n = _addresses.length;
for (uint256 i; i < n; i++) {
blacklist[_addresses[i]] = _statuses[i];
emit BlacklistedWallet(_addresses[i], _statuses[i]);
}
}
function _beforeTokenTransfer(address _from, address _to, uint256) internal virtual {
if (blacklist[_to] || blacklist[_from]) {
revert("address blacklisted");
}
}
}
文件 2 的 15:Context.sol
pragma solidity >=0.6.0 <0.8.0;
abstract contract Context {
function _msgSender() internal view virtual returns (address payable) {
return msg.sender;
}
function _msgData() internal view virtual returns (bytes memory) {
this;
return msg.data;
}
}
文件 3 的 15:ERC20.sol
pragma solidity >=0.6.0 <0.8.0;
import "../../utils/Context.sol";
import "./IERC20.sol";
import "../../math/SafeMath.sol";
contract ERC20 is Context, IERC20 {
using SafeMath for uint256;
mapping (address => uint256) private _balances;
mapping (address => mapping (address => uint256)) private _allowances;
uint256 private _totalSupply;
string private _name;
string private _symbol;
uint8 private _decimals;
constructor (string memory name_, string memory symbol_) public {
_name = name_;
_symbol = symbol_;
_decimals = 18;
}
function name() public view virtual returns (string memory) {
return _name;
}
function symbol() public view virtual returns (string memory) {
return _symbol;
}
function decimals() public view virtual returns (uint8) {
return _decimals;
}
function totalSupply() public view virtual override returns (uint256) {
return _totalSupply;
}
function balanceOf(address account) public view virtual override returns (uint256) {
return _balances[account];
}
function transfer(address recipient, uint256 amount) public virtual override returns (bool) {
_transfer(_msgSender(), recipient, amount);
return true;
}
function allowance(address owner, address spender) public view virtual override returns (uint256) {
return _allowances[owner][spender];
}
function approve(address spender, uint256 amount) public virtual override returns (bool) {
_approve(_msgSender(), spender, amount);
return true;
}
function transferFrom(address sender, address recipient, uint256 amount) public virtual override returns (bool) {
_transfer(sender, recipient, amount);
_approve(sender, _msgSender(), _allowances[sender][_msgSender()].sub(amount, "ERC20: transfer amount exceeds allowance"));
return true;
}
function increaseAllowance(address spender, uint256 addedValue) public virtual returns (bool) {
_approve(_msgSender(), spender, _allowances[_msgSender()][spender].add(addedValue));
return true;
}
function decreaseAllowance(address spender, uint256 subtractedValue) public virtual returns (bool) {
_approve(_msgSender(), spender, _allowances[_msgSender()][spender].sub(subtractedValue, "ERC20: decreased allowance below zero"));
return true;
}
function _transfer(address sender, address recipient, uint256 amount) internal virtual {
require(sender != address(0), "ERC20: transfer from the zero address");
require(recipient != address(0), "ERC20: transfer to the zero address");
_beforeTokenTransfer(sender, recipient, amount);
_balances[sender] = _balances[sender].sub(amount, "ERC20: transfer amount exceeds balance");
_balances[recipient] = _balances[recipient].add(amount);
emit Transfer(sender, recipient, amount);
}
function _mint(address account, uint256 amount) internal virtual {
require(account != address(0), "ERC20: mint to the zero address");
_beforeTokenTransfer(address(0), account, amount);
_totalSupply = _totalSupply.add(amount);
_balances[account] = _balances[account].add(amount);
emit Transfer(address(0), account, amount);
}
function _burn(address account, uint256 amount) internal virtual {
require(account != address(0), "ERC20: burn from the zero address");
_beforeTokenTransfer(account, address(0), amount);
_balances[account] = _balances[account].sub(amount, "ERC20: burn amount exceeds balance");
_totalSupply = _totalSupply.sub(amount);
emit Transfer(account, address(0), amount);
}
function _approve(address owner, address spender, uint256 amount) internal virtual {
require(owner != address(0), "ERC20: approve from the zero address");
require(spender != address(0), "ERC20: approve to the zero address");
_allowances[owner][spender] = amount;
emit Approval(owner, spender, amount);
}
function _setupDecimals(uint8 decimals_) internal virtual {
_decimals = decimals_;
}
function _beforeTokenTransfer(address from, address to, uint256 amount) internal virtual { }
}
文件 4 的 15:IBurnableToken.sol
pragma solidity 0.7.5;
interface IBurnableToken {
function burn(uint256 _amount) external;
}
文件 5 的 15:IERC20.sol
pragma solidity >=0.6.0 <0.8.0;
interface IERC20 {
function totalSupply() external view returns (uint256);
function balanceOf(address account) external view returns (uint256);
function transfer(address recipient, uint256 amount) external returns (bool);
function allowance(address owner, address spender) external view returns (uint256);
function approve(address spender, uint256 amount) external returns (bool);
function transferFrom(address sender, address recipient, uint256 amount) external returns (bool);
event Transfer(address indexed from, address indexed to, uint256 value);
event Approval(address indexed owner, address indexed spender, uint256 value);
}
文件 6 的 15:ISwapReceiver.sol
pragma solidity 0.7.5;
interface ISwapReceiver {
function swapMint(address _holder, uint256 _amount) external;
}
文件 7 的 15:MintableToken.sol
pragma solidity 0.7.5;
import "@openzeppelin/contracts/token/ERC20/ERC20.sol";
import "../interfaces/Owned.sol";
import "../interfaces/IBurnableToken.sol";
abstract contract MintableToken is Owned, ERC20, IBurnableToken {
uint256 public immutable maxAllowedTotalSupply;
uint256 public everMinted;
modifier assertMaxSupply(uint256 _amountToMint) {
_assertMaxSupply(_amountToMint);
_;
}
constructor (uint256 _maxAllowedTotalSupply) {
require(_maxAllowedTotalSupply != 0, "_maxAllowedTotalSupply is empty");
maxAllowedTotalSupply = _maxAllowedTotalSupply;
}
function burn(uint256 _amount) override external {
_burn(msg.sender, _amount);
}
function mint(address _holder, uint256 _amount)
virtual
external
onlyOwner()
assertMaxSupply(_amount)
{
require(_amount != 0, "zero amount");
_mint(_holder, _amount);
}
function _assertMaxSupply(uint256 _amountToMint) internal {
uint256 everMintedTotal = everMinted + _amountToMint;
everMinted = everMintedTotal;
require(everMintedTotal <= maxAllowedTotalSupply, "total supply limit exceeded");
}
}
文件 8 的 15:OnDemandToken.sol
pragma solidity 0.7.5;
import "./MintableToken.sol";
abstract contract OnDemandToken is MintableToken {
bool constant public ON_DEMAND_TOKEN = true;
mapping (address => bool) public minters;
event SetupMinter(address minter, bool active);
modifier onlyOwnerOrMinter() {
address msgSender = _msgSender();
require(owner() == msgSender || minters[msgSender], "access denied");
_;
}
function setupMinter(address _minter, bool _active) external onlyOwner() {
minters[_minter] = _active;
emit SetupMinter(_minter, _active);
}
function setupMinters(address[] calldata _minters, bool[] calldata _actives) external onlyOwner() {
for (uint256 i; i < _minters.length; i++) {
minters[_minters[i]] = _actives[i];
emit SetupMinter(_minters[i], _actives[i]);
}
}
function mint(address _holder, uint256 _amount)
external
virtual
override
onlyOwnerOrMinter()
assertMaxSupply(_amount)
{
require(_amount != 0, "zero amount");
_mint(_holder, _amount);
}
}
文件 9 的 15:OnDemandTokenBridgable.sol
pragma solidity 0.7.5;
import "./OnDemandToken.sol";
abstract contract OnDemandTokenBridgable is OnDemandToken {
mapping (address => bool) public bridges;
event SetupBridge(address bridge, bool active);
function setupBridge(address _bridge, bool _active) external onlyOwner() {
bridges[_bridge] = _active;
emit SetupBridge(_bridge, _active);
}
function _beforeTokenTransfer(address _from, address _to, uint256 _amount) internal virtual override {
if (_from != address(0) && _to != address(0) && bridges[msg.sender]) {
uint256 balance = balanceOf(msg.sender);
if (balance < _amount) {
uint256 amountToMint = _amount - balance;
_assertMaxSupply(amountToMint);
_mint(msg.sender, amountToMint);
}
}
}
}
文件 10 的 15:Ownable.sol
pragma solidity >=0.6.0 <0.8.0;
import "../utils/Context.sol";
abstract contract Ownable is Context {
address private _owner;
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);
constructor () internal {
address msgSender = _msgSender();
_owner = msgSender;
emit OwnershipTransferred(address(0), msgSender);
}
function owner() public view virtual returns (address) {
return _owner;
}
modifier onlyOwner() {
require(owner() == _msgSender(), "Ownable: caller is not the owner");
_;
}
function renounceOwnership() public virtual onlyOwner {
emit OwnershipTransferred(_owner, address(0));
_owner = address(0);
}
function transferOwnership(address newOwner) public virtual onlyOwner {
require(newOwner != address(0), "Ownable: new owner is the zero address");
emit OwnershipTransferred(_owner, newOwner);
_owner = newOwner;
}
}
文件 11 的 15:Owned.sol
pragma solidity 0.7.5;
import "@openzeppelin/contracts/access/Ownable.sol";
abstract contract Owned is Ownable {
constructor(address _owner) {
transferOwnership(_owner);
}
}
文件 12 的 15:SafeMath.sol
pragma solidity >=0.6.0 <0.8.0;
library SafeMath {
function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) {
uint256 c = a + b;
if (c < a) return (false, 0);
return (true, c);
}
function trySub(uint256 a, uint256 b) internal pure returns (bool, uint256) {
if (b > a) return (false, 0);
return (true, a - b);
}
function tryMul(uint256 a, uint256 b) internal pure returns (bool, uint256) {
if (a == 0) return (true, 0);
uint256 c = a * b;
if (c / a != b) return (false, 0);
return (true, c);
}
function tryDiv(uint256 a, uint256 b) internal pure returns (bool, uint256) {
if (b == 0) return (false, 0);
return (true, a / b);
}
function tryMod(uint256 a, uint256 b) internal pure returns (bool, uint256) {
if (b == 0) return (false, 0);
return (true, a % b);
}
function add(uint256 a, uint256 b) internal pure returns (uint256) {
uint256 c = a + b;
require(c >= a, "SafeMath: addition overflow");
return c;
}
function sub(uint256 a, uint256 b) internal pure returns (uint256) {
require(b <= a, "SafeMath: subtraction overflow");
return a - b;
}
function mul(uint256 a, uint256 b) internal pure returns (uint256) {
if (a == 0) return 0;
uint256 c = a * b;
require(c / a == b, "SafeMath: multiplication overflow");
return c;
}
function div(uint256 a, uint256 b) internal pure returns (uint256) {
require(b > 0, "SafeMath: division by zero");
return a / b;
}
function mod(uint256 a, uint256 b) internal pure returns (uint256) {
require(b > 0, "SafeMath: modulo by zero");
return a % b;
}
function sub(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
require(b <= a, errorMessage);
return a - b;
}
function div(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
require(b > 0, errorMessage);
return a / b;
}
function mod(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
require(b > 0, errorMessage);
return a % b;
}
}
文件 13 的 15:SwappableTokenV2.sol
pragma solidity 0.7.5;
import "@openzeppelin/contracts/token/ERC20/ERC20.sol";
import "../interfaces/Owned.sol";
import "../interfaces/ISwapReceiver.sol";
abstract contract SwappableTokenV2 is Owned, ERC20 {
struct SwapData {
uint32 swappedSoFar;
uint32 usedLimit;
uint32 dailyCup;
uint32 dailyCupTimestamp;
uint32 swapEnabledAt;
}
uint256 public constant ONE = 1e18;
uint256 public immutable swapStartsOn;
ISwapReceiver public immutable umb;
SwapData public swapData;
event LogStartEarlySwapNow(uint time);
event LogSwap(address indexed swappedTo, uint amount);
event LogDailyCup(uint newCup);
constructor(address _umb, uint32 _swapStartsOn, uint32 _dailyCup) {
require(_dailyCup != 0, "invalid dailyCup");
require(_swapStartsOn > block.timestamp, "invalid swapStartsOn");
require(ERC20(_umb).decimals() == 18, "invalid UMB token");
swapStartsOn = _swapStartsOn;
umb = ISwapReceiver(_umb);
swapData.dailyCup = _dailyCup;
}
function swapForUMB() external {
SwapData memory data = swapData;
(uint256 limit, bool fullLimit) = _currentLimit(data);
require(limit != 0, "swapping period not started OR limit");
uint256 amountToSwap = balanceOf(msg.sender);
require(amountToSwap != 0, "you dont have tokens to swap");
uint32 amountWoDecimals = uint32(amountToSwap / ONE);
require(amountWoDecimals <= limit, "daily CUP limit");
swapData.usedLimit = uint32(fullLimit ? amountWoDecimals : data.usedLimit + amountWoDecimals);
swapData.swappedSoFar += amountWoDecimals;
if (fullLimit) swapData.dailyCupTimestamp = uint32(block.timestamp);
_burn(msg.sender, amountToSwap);
umb.swapMint(msg.sender, amountToSwap);
emit LogSwap(msg.sender, amountToSwap);
}
function startEarlySwap() external onlyOwner {
require(block.timestamp < swapStartsOn, "swap is already allowed");
require(swapData.swapEnabledAt == 0, "swap was already enabled");
swapData.swapEnabledAt = uint32(block.timestamp);
emit LogStartEarlySwapNow(block.timestamp);
}
function setDailyCup(uint32 _cup) external onlyOwner {
swapData.dailyCup = _cup;
emit LogDailyCup(_cup);
}
function isSwapStarted() external view returns (bool) {
return block.timestamp >= swapStartsOn || swapData.swapEnabledAt != 0;
}
function canSwapTokens(address _address) external view returns (bool) {
uint256 balance = balanceOf(_address);
if (balance == 0) return false;
(uint256 limit,) = _currentLimit(swapData);
return balance / ONE <= limit;
}
function currentLimit() external view returns (uint256 limit) {
(limit,) = _currentLimit(swapData);
limit *= ONE;
}
function _currentLimit(SwapData memory data) internal view returns (uint256 limit, bool fullLimit) {
if (block.timestamp < swapStartsOn && data.swapEnabledAt == 0) return (0, false);
fullLimit = block.timestamp - data.dailyCupTimestamp >= 24 hours;
limit = fullLimit ? data.dailyCup : data.dailyCup - data.usedLimit;
}
}
文件 14 的 15:rUMB2.sol
pragma solidity 0.7.5;
import "./interfaces/rUMBV2.sol";
import "./interfaces/Blacklisted.sol";
import "./interfaces/OnDemandTokenBridgable.sol";
contract rUMB2 is Blacklisted, rUMBV2, OnDemandTokenBridgable {
constructor (
address _owner,
uint256 _maxAllowedTotalSupply,
uint32 _swapStartsOn,
uint32 _dailyCup,
string memory _name,
string memory _symbol,
address _umb
) rUMBV2(_owner, _maxAllowedTotalSupply, _swapStartsOn, _dailyCup, _name, _symbol, _umb) {}
function mint(address _holder, uint256 _amount)
external
override(MintableToken, OnDemandToken)
onlyOwnerOrMinter()
assertMaxSupply(_amount)
{
require(_amount != 0, "zero amount");
_mint(_holder, _amount);
}
function _beforeTokenTransfer(address from, address to, uint256 amount)
internal
override(Blacklisted, OnDemandTokenBridgable, ERC20)
{
Blacklisted._beforeTokenTransfer(from, to, amount);
OnDemandTokenBridgable._beforeTokenTransfer(from, to, amount);
}
}
文件 15 的 15:rUMBV2.sol
pragma solidity 0.7.5;
import "./SwappableTokenV2.sol";
import "./MintableToken.sol";
abstract contract rUMBV2 is MintableToken, SwappableTokenV2 {
constructor (
address _owner,
uint256 _maxAllowedTotalSupply,
uint32 _swapStartsOn,
uint32 _dailyCup,
string memory _name,
string memory _symbol,
address _umb
)
Owned(_owner)
ERC20(_name, _symbol)
MintableToken(_maxAllowedTotalSupply)
SwappableTokenV2(_umb, _swapStartsOn, _dailyCup) {}
}
{
"compilationTarget": {
"contracts/rUMB2.sol": "rUMB2"
},
"evmVersion": "istanbul",
"libraries": {},
"metadata": {
"bytecodeHash": "ipfs",
"useLiteralContent": true
},
"optimizer": {
"enabled": false,
"runs": 200
},
"remappings": []
}
[{"inputs":[{"internalType":"address","name":"_owner","type":"address"},{"internalType":"uint256","name":"_maxAllowedTotalSupply","type":"uint256"},{"internalType":"uint32","name":"_swapStartsOn","type":"uint32"},{"internalType":"uint32","name":"_dailyCup","type":"uint32"},{"internalType":"string","name":"_name","type":"string"},{"internalType":"string","name":"_symbol","type":"string"},{"internalType":"address","name":"_umb","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"spender","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"wallet","type":"address"},{"indexed":false,"internalType":"bool","name":"status","type":"bool"}],"name":"BlacklistedWallet","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"newCup","type":"uint256"}],"name":"LogDailyCup","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"time","type":"uint256"}],"name":"LogStartEarlySwapNow","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"swappedTo","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"LogSwap","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"bridge","type":"address"},{"indexed":false,"internalType":"bool","name":"active","type":"bool"}],"name":"SetupBridge","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"minter","type":"address"},{"indexed":false,"internalType":"bool","name":"active","type":"bool"}],"name":"SetupMinter","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[],"name":"ONE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"ON_DEMAND_TOKEN","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"spender","type":"address"}],"name":"allowance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"approve","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"blacklist","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"bridges","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_address","type":"address"}],"name":"canSwapTokens","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"currentLimit","outputs":[{"internalType":"uint256","name":"limit","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"subtractedValue","type":"uint256"}],"name":"decreaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"everMinted","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"addedValue","type":"uint256"}],"name":"increaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"isSwapStarted","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxAllowedTotalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_holder","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"minters","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint32","name":"_cup","type":"uint32"}],"name":"setDailyCup","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"_addresses","type":"address[]"},{"internalType":"bool[]","name":"_statuses","type":"bool[]"}],"name":"setupBlacklist","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_bridge","type":"address"},{"internalType":"bool","name":"_active","type":"bool"}],"name":"setupBridge","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_minter","type":"address"},{"internalType":"bool","name":"_active","type":"bool"}],"name":"setupMinter","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"_minters","type":"address[]"},{"internalType":"bool[]","name":"_actives","type":"bool[]"}],"name":"setupMinters","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"startEarlySwap","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"swapData","outputs":[{"internalType":"uint32","name":"swappedSoFar","type":"uint32"},{"internalType":"uint32","name":"usedLimit","type":"uint32"},{"internalType":"uint32","name":"dailyCup","type":"uint32"},{"internalType":"uint32","name":"dailyCupTimestamp","type":"uint32"},{"internalType":"uint32","name":"swapEnabledAt","type":"uint32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"swapForUMB","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"swapStartsOn","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transfer","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"sender","type":"address"},{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transferFrom","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"umb","outputs":[{"internalType":"contract ISwapReceiver","name":"","type":"address"}],"stateMutability":"view","type":"function"}]