Blockwell

Gemini dollar

ERC20

This contract is an ERC20 token.

Name Gemini dollar
Symbol GUSD
Decimals 2
Total Supply 11,539,982 GUSD

About link description

The Gemini dollar (GUSD) issued by Gemini Trust Company LLC is meant to provide tokens built on the Ethereum network according to ERC20 standards corresponding 1:1 with holdings of traditional fiat USD held at State Street Bank and Trust Company. Intended to provide creditworthiness and price stability that mimics the U.S Dollar, code within the GUSD contracts were audited by a firm specializing in information security research & development. To verify the necessary 1:1 peg, the deposit balance at the U.S. Bank is examined monthly by BPM, LLP an independently registered public accounting firm.

Stats

Public Functions 14
Event Types 6
Code Size 37,448 bytes

Approval Event

Parameters help
_owner
address help
_spender
address help
_value
uint256 help

CustodianChangeConfirmed Event

Parameters help
_lockId
bytes32 help
_newCustodian
address help

CustodianChangeRequested Event

Parameters help
_lockId
bytes32 help
_msgSender
address help
_proposedCustodian
address help

ImplChangeConfirmed Event

Parameters help
_lockId
bytes32 help
_newImpl
address help

ImplChangeRequested Event

Parameters help
_lockId
bytes32 help
_msgSender
address help
_proposedImpl
address help

Transfer Event

Parameters help
_from
address help
_to
address help
_value
uint256 help

Functions Expand All Collapse All

requestCustodianChange keyboard_arrow_up

Parameters help

Name Type
_proposedCustodian
address help

Properties

Visibility help public
Mutability help transaction
Source Code
    function requestCustodianChange(address _proposedCustodian) public returns (bytes32 lockId) {
        require(_proposedCustodian != address(0));

        lockId = generateLockId();

        custodianChangeReqs[lockId] = CustodianChangeRequest({
            proposedNew: _proposedCustodian
        });

        emit CustodianChangeRequested(lockId, msg.sender, _proposedCustodian);
    }

confirmCustodianChange keyboard_arrow_up

Parameters help

Name Type
_lockId
bytes32 help

Properties

Visibility help public
Mutability help transaction
Source Code
    function confirmCustodianChange(bytes32 _lockId) public onlyCustodian {
        custodian = getCustodianChangeReq(_lockId);

        delete custodianChangeReqs[_lockId];

        emit CustodianChangeConfirmed(_lockId, custodian);
    }

requestImplChange keyboard_arrow_up

Parameters help

Name Type
_proposedImpl
address help

Properties

Visibility help public
Mutability help transaction

Requirements help

Source Code
    function requestImplChange(address _proposedImpl) public returns (bytes32 lockId) {
        require(_proposedImpl != address(0));

        lockId = generateLockId();

        implChangeReqs[lockId] = ImplChangeRequest({
            proposedNew: _proposedImpl
        });

        emit ImplChangeRequested(lockId, msg.sender, _proposedImpl);
    }

confirmImplChange keyboard_arrow_up

Parameters help

Name Type
_lockId
bytes32 help

Properties

Visibility help public
Mutability help transaction
Source Code
    function confirmImplChange(bytes32 _lockId) public onlyCustodian {
        erc20Impl = getImplChangeReq(_lockId);

        delete implChangeReqs[_lockId];

        emit ImplChangeConfirmed(_lockId, address(erc20Impl));
    }

totalSupply keyboard_arrow_up

Parameters help

This function has no parameters.

Properties

Visibility help public
Mutability help view
Source Code
    function totalSupply() public view returns (uint256) {
        return erc20Impl.totalSupply();
    }

balanceOf keyboard_arrow_up

Parameters help

Name Type
_owner
address help

Properties

Visibility help public
Mutability help view
Source Code
    function balanceOf(address _owner) public view returns (uint256 balance) {
        return erc20Impl.balanceOf(_owner);
    }

transfer keyboard_arrow_up

Parameters help

Name Type
_to
address help
_value
uint256 help

Properties

Visibility help public
Mutability help transaction
Source Code
    function transfer(address _to, uint256 _value) public returns (bool success) {
        return erc20Impl.transferWithSender(msg.sender, _to, _value);
    }

transferFrom keyboard_arrow_up

Parameters help

Name Type
_from
address help
_to
address help
_value
uint256 help

Properties

Visibility help public
Mutability help transaction
Source Code
    function transferFrom(address _from, address _to, uint256 _value) public returns (bool success) {
        return erc20Impl.transferFromWithSender(msg.sender, _from, _to, _value);
    }

approve keyboard_arrow_up

Parameters help

Name Type
_spender
address help
_value
uint256 help

Properties

Visibility help public
Mutability help transaction
Source Code
    function approve(address _spender, uint256 _value) public returns (bool success) {
        return erc20Impl.approveWithSender(msg.sender, _spender, _value);
    }

allowance keyboard_arrow_up

Parameters help

Name Type
_owner
address help
_spender
address help

Properties

Visibility help public
Mutability help view
Source Code
    function allowance(address _owner, address _spender) public view returns (uint256 remaining) {
        return erc20Impl.allowance(_owner, _spender);
    }

emitTransfer keyboard_arrow_up

Parameters help

Name Type
_from
address help
_to
address help
_value
uint256 help

Properties

Visibility help public
Mutability help transaction
Source Code
    function emitTransfer(address _from, address _to, uint256 _value) public onlyImpl {
        emit Transfer(_from, _to, _value);
    }

emitApproval keyboard_arrow_up

Parameters help

Name Type
_owner
address help
_spender
address help
_value
uint256 help

Properties

Visibility help public
Mutability help transaction
Source Code
    function emitApproval(address _owner, address _spender, uint256 _value) public onlyImpl {
        emit Approval(_owner, _spender, _value);
    }

increaseApproval keyboard_arrow_up

Parameters help

Name Type
_spender
address help
_addedValue
uint256 help

Properties

Visibility help public
Mutability help transaction
Source Code
    function increaseApproval(address _spender, uint256 _addedValue) public returns (bool success) {
        return erc20Impl.increaseApprovalWithSender(msg.sender, _spender, _addedValue);
    }

decreaseApproval keyboard_arrow_up

Parameters help

Name Type
_spender
address help
_subtractedValue
uint256 help

Properties

Visibility help public
Mutability help transaction
Source Code
    function decreaseApproval(address _spender, uint256 _subtractedValue) public returns (bool success) {
        return erc20Impl.decreaseApprovalWithSender(msg.sender, _spender, _subtractedValue);
    }