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

Architecture

Inheritance Graph

graph TD ProxyERC20[ProxyERC20] --> Proxy[Proxy] Proxy[Proxy] --> Owned[Owned]

Constructor

constructor

Source

Details

Signature

(address _owner)

Visibility

public

State Mutability

nonpayable

Views

allowance

Source

Details

Signature

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

Visibility

public

State Mutability

view

balanceOf

Source

Details

Signature

balanceOf(address account) returns (uint256)

Visibility

public

State Mutability

view

decimals

Source

Details

Signature

decimals() returns (uint8)

Visibility

public

State Mutability

view

name

Source

Details

Signature

name() returns (string)

Visibility

public

State Mutability

view

symbol

Source

Details

Signature

symbol() returns (string)

Visibility

public

State Mutability

view

totalSupply

Source

Details

Signature

totalSupply() returns (uint256)

Visibility

public

State Mutability

view

External Functions

approve

Source

Details

Signature

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

Visibility

public

State Mutability

nonpayable

transfer

Source

Details

Signature

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

Visibility

public

State Mutability

nonpayable

transferFrom

Source

Details

Signature

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

Visibility

public

State Mutability

nonpayable