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
Gemini Dollar (GUSD) is a cryptocurrency and operates on the Ethereum platform. Gemini Dollar has a current supply of 309,478,288.65. The last known price of Gemini Dollar is 0.99172544 USD and is up 0.17 over the last 24 hours. It is currently trading on 29 active market(s) with $9,313,293.48 traded over the last 24 hours. More information can be found at https://gemini.com/dollar/.
Identical Contracts
The following contracts have identical source code.
Stats
Public Functions
14
Event Types
6
Code Size
37,448 bytes
Events (6) keyboard_arrow_up
State Variables (8) keyboard_arrow_up
Functions
requestCustodianChange keyboard_arrow_up
Requirements help
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
Modifiers help
onlyCustodian checks for the following:
Source Code
function confirmCustodianChange(bytes32 _lockId) public onlyCustodian {
custodian = getCustodianChangeReq(_lockId);
delete custodianChangeReqs[_lockId];
emit CustodianChangeConfirmed(_lockId, custodian);
}
requestImplChange keyboard_arrow_up
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
Modifiers help
onlyCustodian checks for the following:
Source Code
function confirmImplChange(bytes32 _lockId) public onlyCustodian {
erc20Impl = getImplChangeReq(_lockId);
delete implChangeReqs[_lockId];
emit ImplChangeConfirmed(_lockId, address(erc20Impl));
}
totalSupply keyboard_arrow_up
balanceOf keyboard_arrow_up
transfer keyboard_arrow_up
transferFrom keyboard_arrow_up
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
allowance keyboard_arrow_up
emitTransfer keyboard_arrow_up
Modifiers help
onlyImpl checks for the following:
Source Code
function emitTransfer(
address _from,
address _to,
uint256 _value
) public onlyImpl {
emit Transfer(_from, _to, _value);
}
emitApproval keyboard_arrow_up
Modifiers help
onlyImpl checks for the following:
Source Code
function emitApproval(
address _owner,
address _spender,
uint256 _value
) public onlyImpl {
emit Approval(_owner, _spender, _value);
}
increaseApproval keyboard_arrow_up
Source Code
function increaseApproval(address _spender, uint256 _addedValue)
public
returns (bool success)
{
return
erc20Impl.increaseApprovalWithSender(msg.sender, _spender, _addedValue);
}
decreaseApproval keyboard_arrow_up
Source Code
function decreaseApproval(address _spender, uint256 _subtractedValue)
public
returns (bool success)
{
return
erc20Impl.decreaseApprovalWithSender(
msg.sender,
_spender,
_subtractedValue
);
}
Internal Functions
Internal functions are parts of the contract that can't be used directly, but instead are used by the public functions listed above.
internal ERC20ImplUpgradeable.getImplChangeReq keyboard_arrow_up
Requirements help
Source Code
function getImplChangeReq(bytes32 _lockId)
private
view
returns (ERC20Impl _proposedNew)
{
ImplChangeRequest storage changeRequest = implChangeReqs[_lockId];
// reject ‘null’ results from the map lookup
// this can only be the case if an unknown `_lockId` is received
require(changeRequest.proposedNew != address(0));
return ERC20Impl(changeRequest.proposedNew);
}
internal CustodianUpgradeable.getCustodianChangeReq keyboard_arrow_up
Requirements help
Source Code
function getCustodianChangeReq(bytes32 _lockId)
private
view
returns (address _proposedNew)
{
CustodianChangeRequest storage changeRequest = custodianChangeReqs[_lockId];
// reject ‘null’ results from the map lookup
// this can only be the case if an unknown `_lockId` is received
require(changeRequest.proposedNew != 0);
return changeRequest.proposedNew;
}