Linear Token
ERC20
This contract is an ERC20 token.
Name
Linear Token
Symbol
LINA
Decimals
18
Total Supply
10,000,000,000 LINA
About
link
Linear (LINA) is a cryptocurrency and operates on the Ethereum platform. Linear has a current supply of 10,000,000,000 with 3,755,627,344.7466664 in circulation. The last known price of Linear is 0.03220689 USD and is down -7.72 over the last 24 hours. It is currently trading on 34 active market(s) with $25,732,932.84 traded over the last 24 hours. More information can be found at https://linear.finance.
Stats
Public Functions
18
Event Types
5
Code Size
7,846 bytes
Events (5) keyboard_arrow_up
Functions
setCandidate keyboard_arrow_up
Modifiers help
onlyAdmin checks for the following:
Source Code
function setCandidate(address _candidate) external onlyAdmin {
address old = candidate;
candidate = _candidate;
emit candidateChanged(old, candidate);
}
becomeAdmin keyboard_arrow_up
setTarget keyboard_arrow_up
Log0 keyboard_arrow_up
Modifiers help
onlyTarget checks for the following:
Source Code
function Log0(bytes calldata callData) external onlyTarget {
uint256 size = callData.length;
bytes memory _callData = callData;
assembly {
log0(add(_callData, 32), size)
}
}
Log1 keyboard_arrow_up
Modifiers help
onlyTarget checks for the following:
Source Code
function Log1(bytes calldata callData, bytes32 topic1) external onlyTarget {
uint256 size = callData.length;
bytes memory _callData = callData;
assembly {
log1(add(_callData, 32), size, topic1)
}
}
Log2 keyboard_arrow_up
Modifiers help
onlyTarget checks for the following:
Source Code
function Log2(
bytes calldata callData,
bytes32 topic1,
bytes32 topic2
) external onlyTarget {
uint256 size = callData.length;
bytes memory _callData = callData;
assembly {
log2(add(_callData, 32), size, topic1, topic2)
}
}
Log3 keyboard_arrow_up
Parameters help
Modifiers help
onlyTarget checks for the following:
Source Code
function Log3(
bytes calldata callData,
bytes32 topic1,
bytes32 topic2,
bytes32 topic3
) external onlyTarget {
uint256 size = callData.length;
bytes memory _callData = callData;
assembly {
log3(add(_callData, 32), size, topic1, topic2, topic3)
}
}
Log4 keyboard_arrow_up
Parameters help
Modifiers help
onlyTarget checks for the following:
Source Code
function Log4(
bytes calldata callData,
bytes32 topic1,
bytes32 topic2,
bytes32 topic3,
bytes32 topic4
) external onlyTarget {
uint256 size = callData.length;
bytes memory _callData = callData;
assembly {
log4(add(_callData, 32), size, topic1, topic2, topic3, topic4)
}
}
constructor keyboard_arrow_up
Parameters help
This function has no parameters.
Source Code
receive() external payable {
target.setMessageSender(msg.sender);
assembly {
let free_ptr := mload(0x40)
calldatacopy(free_ptr, 0, calldatasize())
let result := call(
gas(),
sload(target_slot),
callvalue(),
free_ptr,
calldatasize(),
0,
0
)
returndatacopy(free_ptr, 0, returndatasize())
if iszero(result) {
revert(free_ptr, returndatasize())
}
return(free_ptr, returndatasize())
}
}
name keyboard_arrow_up
symbol keyboard_arrow_up
decimals keyboard_arrow_up
totalSupply keyboard_arrow_up
balanceOf keyboard_arrow_up
allowance keyboard_arrow_up
transfer keyboard_arrow_up
Source Code
function transfer(address to, uint256 value) public override returns (bool) {
target.setMessageSender(msg.sender);
IERC20(address(target)).transfer(to, value);
return true;
}
approve keyboard_arrow_up
Source Code
function approve(address spender, uint256 value)
public
override
returns (bool)
{
target.setMessageSender(msg.sender);
IERC20(address(target)).approve(spender, value);
return true;
}
transferFrom keyboard_arrow_up
Source Code
function transferFrom(
address from,
address to,
uint256 value
) public override returns (bool) {
target.setMessageSender(msg.sender);
IERC20(address(target)).transferFrom(from, to, value);
return true;
}
Internal Functions
Internal functions are parts of the contract that can't be used directly, but instead are used by the public functions listed above.