Blockwell

Paxos Gold

About link description

PAX Gold (PAXG) is a digital asset where one token is backed by one fine troy ounce (t oz) of a 400 oz London Good Delivery gold bar, stored in Brink’s gold vaults. Anyone who owns PAXG owns the underlying physical gold, held in custody by Paxos Trust Company.

Stats

Public Functions 6
Event Types 2
Code Size 10,161 bytes

AdminChanged Event

Parameters help
previousAdmin
address help
newAdmin
address help

Upgraded Event

Parameters help
implementation
address help

Functions Expand All Collapse All

constructor keyboard_arrow_up

Parameters help

This function has no parameters.

Properties

Visibility help public
Mutability help payable
Source Code
    function () payable external {
        _fallback();
    }

admin keyboard_arrow_up

Parameters help

This function has no parameters.

Properties

Visibility help public
Mutability help view

Modifiers help

ifAdmin checks for the following:
Source Code
    function admin() external view ifAdmin returns (address) {
        return _admin();
    }

implementation keyboard_arrow_up

Parameters help

This function has no parameters.

Properties

Visibility help public
Mutability help view

Modifiers help

ifAdmin checks for the following:
Source Code
    function implementation() external view ifAdmin returns (address) {
        return _implementation();
    }

changeAdmin keyboard_arrow_up

Parameters help

Name Type
newAdmin
address help

Properties

Visibility help public
Mutability help transaction

Modifiers help

ifAdmin checks for the following:

Requirements help

Source Code
    function changeAdmin(address newAdmin) external ifAdmin {
        require(newAdmin != address(0), "Cannot change the admin of a proxy to the zero address");
        emit AdminChanged(_admin(), newAdmin);
        _setAdmin(newAdmin);
    }

upgradeTo keyboard_arrow_up

Parameters help

Name Type
newImplementation
address help

Properties

Visibility help public
Mutability help transaction

Modifiers help

ifAdmin checks for the following:
Source Code
    function upgradeTo(address newImplementation) external ifAdmin {
        _upgradeTo(newImplementation);
    }

upgradeToAndCall keyboard_arrow_up

Parameters help

Name Type
newImplementation
address help
data
bytes help

Properties

Visibility help public
Mutability help payable

Modifiers help

ifAdmin checks for the following:
Source Code
    function upgradeToAndCall(address newImplementation, bytes data) payable external ifAdmin {
        _upgradeTo(newImplementation);
        require(address(this).call.value(msg.value)(data));
    }