relevant tag icon
USDC Fiat Token V2
copy icon
Centre
โ€ข version 1.0.0
USDC
Stablecoin
ERC20
Token

USDC Fiat Token V2

The second USDC stablecoin contract -ERC20 Token backed by fiat reserves. The current USDC token extends this contract.

*Visit desktop site to download or deploy

Version

1.0.0

Creator

Centre

Recent Use

๐Ÿž 0x775F downloaded
๐Ÿฅ 0x7015 downloaded

Last Publish

11/26/2022
Any contract you deploy is yours.
Fully owned and controlled by your wallet.
Documentation
Source Code
initializeV2(string) :
This function initializes the contract with a new name. It requires that the contract has not been initialized yet and sets the name, domain separator, and initialized version to the new values. It does this by taking in a string calldata parameter called newName and using it to create a domain separator using the EIP712.makeDomainSeparator() function. It then sets the name, domain separator, and initialized version to the new values. (autogenerated documentation)
increaseAllowance(address,uint256) :
This function increases the allowance of a given spender address from the msg.sender address. It does this by calling the internal _increaseAllowance function, which updates the allowance mapping for the given spender address. The function also checks that the msg.sender and spender addresses are not blacklisted, and that the contract is not paused. If all of these conditions are met, the function returns true. (autogenerated documentation)
decreaseAllowance(address,uint256) :
This function decreases the allowance of a spender (address) from the msg.sender (the owner of the tokens). It works by first checking that the msg.sender and spender are not blacklisted, and that the contract is not paused. If these conditions are met, the function calls the internal _decreaseAllowance function, which updates the allowance of the spender. Finally, the function returns true. (autogenerated documentation)
transferWithAuthorization(address,address,uint256,uint256,uint256,bytes32,uint8,bytes32,bytes32) :
This function allows a user to transfer tokens from one address to another with authorization. The authorization is provided by a signed message, which is composed of the from address, to address, value, validAfter, validBefore, nonce, v, r, and s parameters. The function verifies that the message is valid and that the from and to addresses are not blacklisted before transferring the tokens. (autogenerated documentation)
receiveWithAuthorization(address,address,uint256,uint256,uint256,bytes32,uint8,bytes32,bytes32) :
This function allows a user to transfer funds from one address to another with authorization. The function takes in the address of the sender, the address of the recipient, the amount of funds to be transferred, the start and end times of the authorization, a nonce, and the signature of the sender. The function then calls the _receiveWithAuthorization function, which verifies the signature and checks that the sender is not blacklisted and that the transaction is not paused. If all of these conditions are met, the funds are transferred. (autogenerated documentation)
cancelAuthorization(address,bytes32,uint8,bytes32,bytes32) :
This function allows an authorizer to cancel an authorization they have previously granted. It requires the authorizer's address, a nonce, and the signature of the authorizer. The signature is composed of the v, r, and s values, which are generated by signing the nonce with the authorizer's private key. The function then calls the internal _cancelAuthorization function, which verifies the signature and cancels the authorization. (autogenerated documentation)
permit(address,address,uint256,uint256,uint8,bytes32,bytes32) :
This function allows an owner to grant a spender permission to transfer a certain amount of tokens from the owner's account to the spender's account. The function takes in the owner and spender addresses, the amount of tokens to be transferred, a deadline for when the transfer must be completed, and a digital signature (v, r, s) to verify the owner's identity. The function then calls the _permit() internal function to execute the transfer. (autogenerated documentation)
_increaseAllowance(address,address,uint256) :
This function increases the allowance of a given spender for a given owner. It does this by calling the _approve function, passing in the owner, spender, and the sum of the current allowance and the increment. This allows the spender to transfer more tokens from the owner's account. (autogenerated documentation)
_decreaseAllowance(address,address,uint256) :
This function decreases the allowance of a given spender for a given owner. It does this by subtracting the decrement value from the current allowance stored in the allowed mapping. If the result of the subtraction is less than zero, an error is thrown. (autogenerated documentation)

Get Cookin'
share iconShare

copy iconDownload Source
copy iconnpx cookbookdev i usdc-fiat-token-v2
copy icon

Recent Use

๐Ÿž 0x775F downloaded
๐Ÿฅ 0x7015 downloaded

Last Publish

11/26/2022

Version

1.0.0

Creator

Centre

Cookbook is free.
Any contract you deploy is yours.
Your contract is owned and controlled by you.