HedgeTrade
ERC20
This contract is an ERC20 token.
Name
HedgeTrade
Symbol
HEDG
Decimals
18
Total Supply
1,000,000,000 HEDG
About
link
HedgeTrade aims to become a platform where the world’s best traders share their knowledge. Traders post predictions into a smart contract-powered Blueprint that users can purchase or unlock in order to access. Traders are rewarded if the Blueprint is correct otherwise the user's purchase is refunded. HedgeTrade aims to revolutionize social trading using blockchain technology.
Stats
Public Functions
20
Event Types
8
Code Size
9,147 bytes
Events (8) keyboard_arrow_up
Functions
setOwner keyboard_arrow_up
setAuthority keyboard_arrow_up
Modifiers help
auth checks for the following:
null
Source Code
function setAuthority(DSAuthority authority_)
public
auth
{
authority = authority_;
emit LogSetAuthority(address(authority));
}
stop keyboard_arrow_up
start keyboard_arrow_up
totalSupply keyboard_arrow_up
balanceOf keyboard_arrow_up
allowance keyboard_arrow_up
approve keyboard_arrow_up
Source Code
function approve(address guy, uint wad) public stoppable returns (bool) {
return super.approve(guy, wad);
}
transfer keyboard_arrow_up
Requirements help
Source Code
function transfer(address dst, uint wad) public returns (bool) {
return transferFrom(msg.sender, dst, wad);
}
transferFrom keyboard_arrow_up
Source Code
function transferFrom(address src, address dst, uint wad)
public
stoppable
returns (bool)
{
if (src != msg.sender && !_trusted[src][msg.sender]) {
_approvals[src][msg.sender] = sub(_approvals[src][msg.sender], wad);
}
_balances[src] = sub(_balances[src], wad);
_balances[dst] = add(_balances[dst], wad);
emit Transfer(src, dst, wad);
return true;
}
trusted keyboard_arrow_up
trust keyboard_arrow_up
Source Code
function trust(address guy, bool wat) public stoppable {
_trusted[msg.sender][guy] = wat;
emit Trust(msg.sender, guy, wat);
}
push keyboard_arrow_up
pull keyboard_arrow_up
move keyboard_arrow_up
mint keyboard_arrow_up
burn keyboard_arrow_up
mint keyboard_arrow_up
Modifiers help
auth checks for the following:
null
stoppable checks for the following:
Source Code
function mint(address guy, uint wad) public auth stoppable {
_balances[guy] = add(_balances[guy], wad);
_supply = add(_supply, wad);
emit Mint(guy, wad);
emit Transfer(address(0), guy, wad);
}
burn keyboard_arrow_up
Modifiers help
auth checks for the following:
null
stoppable checks for the following:
Source Code
function burn(address guy, uint wad) public auth stoppable {
_balances[guy] = sub(_balances[guy], wad);
_supply = sub(_supply, wad);
emit Burn(guy, wad);
emit Transfer(guy, address(0), wad);
}