Skip to content

ProxyERC20

Description

This is a wrapper around Proxy which explicitly implements the ERC20 token standard.

As a result this proxy can verifiably support token functionality in its ABI if it sits in front of an ERC20-compliant smart contract. Apart from these functions, ProxyERC20 operates identically to the proxy it inherits.

In the Synthetix system, an ERC20 proxy operates in front of the main SNX token contract, alongside the pre-existing standard proxy. Thus clients can choose to use either of these two proxies to interact with the system.

Source: contracts/ProxyERC20.sol

Constructor

constructor

Source

Details

Signature

constructor(address _owner)

Visibility

public

State Mutability

undefined

External Functions

allowance

Source

Details

Signature

allowance(address owner, address spender) view returns (uint256)

Visibility

public

State Mutability

undefined

approve

Source

Details

Signature

approve(address spender, uint256 value) returns (bool)

Visibility

public

State Mutability

undefined

balanceOf

Source

Details

Signature

balanceOf(address account) view returns (uint256)

Visibility

public

State Mutability

undefined

decimals

Source

Details

Signature

decimals() view returns (uint8)

Visibility

public

State Mutability

undefined

name

Source

Details

Signature

name() view returns (string)

Visibility

public

State Mutability

undefined

symbol

Source

Details

Signature

symbol() view returns (string)

Visibility

public

State Mutability

undefined

totalSupply

Source

Details

Signature

totalSupply() view returns (uint256)

Visibility

public

State Mutability

undefined

transfer

Source

Details

Signature

transfer(address to, uint256 value) returns (bool)

Visibility

public

State Mutability

undefined

transferFrom

Source

Details

Signature

transferFrom(address from, address to, uint256 value) returns (bool)

Visibility

public

State Mutability

undefined