LogoLogo
  • Removing USDV From Circulation
    • Announcement
  • What is USDV?
    • USDV Overview
    • How Coloring Works
    • Yield & Peg Management
    • Security
    • FAQ
  • Verified Minters
    • Integrating USDV
    • Initial KYC
    • Minting USDV
    • Monitoring & Reminting
    • Moving USDV Crosschain
    • Claiming Rewards
    • Redeeming STBT
    • Account Settings
    • Setting Default Color
    • Delegating Viewers
  • APP INTEGRATIONS
    • Minter Widget
    • On Ethereum
    • On Sidechain
      • Recolor Helper
  • Concepts
    • USDV Architecture
    • Mint
    • ColorTrace Algorithm
    • ColorTrace Safety
    • Delta
    • Remint
    • Redemption
    • Fees
  • Technical Reference
    • Contract Addresses
    • Contract Governance
    • Contract ABI
    • Liquidity Provision
    • Rate Limiter
    • Gas Profile
  • Legal
    • Terms and Conditions
    • Privacy Policy
Powered by GitBook
LogoLogo

Copyright by Verified USD Foundation

On this page
  1. Technical Reference

Gas Profile

Below shows the gas profile of functions for composability.

  • USDV behaves like a normal ERC-20 tokens with slightly more gas in transfer for recording the coloring metadata.

  • The gas cost of USDV remint function on Ethereum is a function of the number of colors involved in the reminting operations. It grows linearly in proportion to the colors involved. The avg 151k is a good estimate of use cases.

  • VaultManager is the vault responsible for USDV issuance.

·--------------------------------------|---------------------------|---------------|
|         Solc version: 0.8.19         ·  Optimizer enabled: true  ·  Runs: 10000  ·
·······································|···························|···············|
|  Methods                                                                          
·················|·····················|·············|·············|···············|
|  Contract      ·  Method             ·  Min        ·  Max        ·  Avg          ·
·················|·····················|·············|·············|···············|
|  USDV          ·  approve            ·      46288  ·      46324  ·        46309  ·
·················|·····················|·············|·············|···············|
|  USDV          ·  remint             ·     125267  ·     245566  ·       151237  ·
·················|·····················|·············|·············|···············|
|  USDV          ·  setEnforceColor    ·      31238  ·      51244  ·        47404  ·
·················|·····················|·············|·············|···············|
|  USDV          ·  transfer           ·      30587  ·      55522  ·        50933  ·
·················|·····················|·············|·············|···············|
|  USDV          ·  transferFrom       ·      35914  ·      58035  ·        54763  ·
·················|·····················|·············|·············|···············|
|  VaultManager  ·  distributeReward   ·     132092  ·     217592  ·       133494  ·
·················|·····················|·············|·············|···············|
|  VaultManager  ·  mint               ·     120399  ·     246955  ·       145789  ·
·················|·····················|·············|·············|···············|
|  VaultManager  ·  redeem             ·     135947  ·     240663  ·       159321  ·
·················|·····················|·············|·············|···············|
|  VaultManager  ·  withdrawReward     ·      74335  ·      79202  ·        78608  ·
·--------------------------------------|-------------|-------------|---------------|

Last updated 1 year ago