Divergence Protocol
  • OVERVIEW
    • Divergence Protocol
    • Protocol Basics
      • Digital Options
      • Triangular Swaps
      • Convertible Liquidity
      • Options Specs
      • Fees
      • Glossary
      • References
  • User Guide
    • 📈Long Options
      • 🔥Open Longs
      • 🌊Close Longs
      • 👨‍🌾Exercise Options
    • 📉Short Options
      • 💧Open Shorts
      • 🔚Finalize Shorts
      • 📥Close Shorts
      • ⏰Expiry Withdrawal
    • 🍸Dive Bar
  • Technical Reference
    • Smart Contract Architecture
      • Deployment addresses
    • Core
      • Arena
      • Battle
      • Oracle
      • Utils
      • SToken
      • Interface
      • Libraries
        • DiverSqrtPriceMath
        • Position
        • Tick
        • TickMath
        • TradeMath
      • Params
      • Types
    • Periphery
      • Manager
      • Base
      • Interface
      • Quoter
      • Libraries
      • Params
      • Types
    • Audit Reports
  • DIVER Token
    • 🌝Tokenomics
      • Token Distribution
    • 🎃DIVΞR NFT Collections
  • Legal
    • Terms of Service
    • Risk Disclosure
  • MISC. INFO
    • 🔗Official Links
    • 🙌Media Kit
    • 🚢Ditanic Test Coins
Powered by GitBook
On this page
  • mint
  • burn
  • decimals

Was this helpful?

  1. Technical Reference
  2. Core

SToken

Implements digital call (Spear) and digital put (Shield) options as ERC-20 tokens (STokens).

mint

Mints an amount of SToken for an account

    function mint(address account, uint256 amount) external override onlyOwner

Params:

Name

Type

Description

account

address

The account address

amount

uint256

The amount of SToken minted

burn

Burns an amount of SToken for an account

function burn(address account, uint256 amount) external override onlyOwner

Params:

Name

Type

Description

account

address

The account address

amount

uint256

The amount of SToken burned

decimals

Returns the number of decimals used for the SToken token

function decimals() public view virtual override returns (uint8)

Returns:

Name

Type

Description

_decimals

uint8

The number of decimals used for the SToken

PreviousUtilsNextInterface

Last updated 1 year ago

Was this helpful?