# Divergence Protocol

## Divergence

- [Divergence Protocol](https://docs.divergence-protocol.com/overview/divergence-protocol.md)
- [Protocol Basics](https://docs.divergence-protocol.com/overview/protocol-basics.md): Get started with foundational concepts of Divergence v1.
- [Digital Options](https://docs.divergence-protocol.com/overview/protocol-basics/digital-options.md): Digital options, also known as binary or bet options, offer a predetermined risk and reward for the holder. Digital calls and puts are minted as Spear and Shield tokens, respectively.
- [Triangular Swaps](https://docs.divergence-protocol.com/overview/protocol-basics/triangular-swaps.md): At Divergence v1, one swaps collateral tokens for calls or puts. A virtual curve is used to triangulate the relative value of calls, puts and collaterals as follows:
- [Convertible Liquidity](https://docs.divergence-protocol.com/overview/protocol-basics/convertible-liquidity.md): Liquidity providers sell calls and puts within custom price ranges. They can either naked short calls or puts, or sell previously bought calls or puts.
- [Options Specs](https://docs.divergence-protocol.com/overview/protocol-basics/options-specs.md)
- [Fees](https://docs.divergence-protocol.com/overview/protocol-basics/fees.md)
- [Glossary](https://docs.divergence-protocol.com/overview/protocol-basics/glossary.md)
- [References](https://docs.divergence-protocol.com/overview/protocol-basics/references.md): Digital options are not a novel concept. They have been thoroughly explored in decades of studies on financial derivatives. Here are a few insightful ones:
- [📈Long Options](https://docs.divergence-protocol.com/user-guide/long-options.md): Select a collateral, swap for Spear tokens as calls, or Shield tokens as puts, and chill 😎
- [🔥Open Longs](https://docs.divergence-protocol.com/user-guide/long-options/open-longs.md)
- [🌊Close Longs](https://docs.divergence-protocol.com/user-guide/long-options/close-longs.md)
- [👨‍🌾Exercise Options](https://docs.divergence-protocol.com/user-guide/long-options/exercise-options.md)
- [📉Short Options](https://docs.divergence-protocol.com/user-guide/short-options.md): Liquidity providers are options sellers. They passively sell calls or puts at custom prices. In a pool, multiple liquidity positions can be minted, each as an NFT.
- [💧Open Shorts](https://docs.divergence-protocol.com/user-guide/short-options/open-shorts.md)
- [🔚Finalize Shorts](https://docs.divergence-protocol.com/user-guide/short-options/finalize-shorts.md)
- [📥Close Shorts](https://docs.divergence-protocol.com/user-guide/short-options/close-shorts.md)
- [⏰Expiry Withdrawal](https://docs.divergence-protocol.com/user-guide/short-options/expiry-withdrawal.md)
- [🍸Dive Bar](https://docs.divergence-protocol.com/user-guide/dive-bar.md): Experimental prediction markets for those who would like to take a stand.
- [Smart Contract Architecture](https://docs.divergence-protocol.com/technical-reference/smart-contract-architecture.md)
- [Deployment addresses](https://docs.divergence-protocol.com/technical-reference/smart-contract-architecture/deployment-addresses.md): For our v1 deployment on Arbitrum One:
- [Core](https://docs.divergence-protocol.com/technical-reference/core.md)
- [Arena](https://docs.divergence-protocol.com/technical-reference/core/arena.md): Deploys battles, aka options pools. Sets pool underlying, collateral, fees, expiries and other deployment parameters.
- [Battle](https://docs.divergence-protocol.com/technical-reference/core/battle.md): Each options pool is contained in a Battle contract. Battle contracts provide core functionalities including minting and burning liquidity, trading options tokens, settling and exercising options, and
- [Oracle](https://docs.divergence-protocol.com/technical-reference/core/oracle.md): Retrieves underlying asset prices used for settling options.
- [Utils](https://docs.divergence-protocol.com/technical-reference/core/utils.md)
- [SToken](https://docs.divergence-protocol.com/technical-reference/core/stoken.md): Implements digital call (Spear) and digital put (Shield) options as ERC-20 tokens (STokens).
- [Interface](https://docs.divergence-protocol.com/technical-reference/core/interface.md)
- [Libraries](https://docs.divergence-protocol.com/technical-reference/core/libraries.md): Functionalities used by other contracts
- [DiverSqrtPriceMath](https://docs.divergence-protocol.com/technical-reference/core/libraries/diversqrtpricemath.md): Contains the math that uses liquidity to compute token deltas or square root of price as a Q64.96
- [Position](https://docs.divergence-protocol.com/technical-reference/core/libraries/position.md): Manages and updates the position information
- [Tick](https://docs.divergence-protocol.com/technical-reference/core/libraries/tick.md): Manages tick processes and computes variables stored in the tick state
- [TickMath](https://docs.divergence-protocol.com/technical-reference/core/libraries/tickmath.md): Math library for computing sqrt prices from ticks and vice versa. Sets the minimum and maximum of ticks and sqrt prices.
- [TradeMath](https://docs.divergence-protocol.com/technical-reference/core/libraries/trademath.md): Computes the result of a swap within ticks. Contains methods for computing the result of a swap within a single tick price range, i.e., a single tick.
- [Params](https://docs.divergence-protocol.com/technical-reference/core/params.md): Parameters for functions contained in the core contracts
- [Types](https://docs.divergence-protocol.com/technical-reference/core/types.md)
- [Periphery](https://docs.divergence-protocol.com/technical-reference/periphery.md)
- [Manager](https://docs.divergence-protocol.com/technical-reference/periphery/manager.md): Sets up the necessary state variables, mappings, and inheritance to handle position NFTs, manage liquidity, and interact with the battle contracts
- [Base](https://docs.divergence-protocol.com/technical-reference/periphery/base.md)
- [Interface](https://docs.divergence-protocol.com/technical-reference/periphery/interface.md)
- [Quoter](https://docs.divergence-protocol.com/technical-reference/periphery/quoter.md): Gets the expected token deltas without executing a swap or providing liquidity. Returns position information for liquidity providers.
- [Libraries](https://docs.divergence-protocol.com/technical-reference/periphery/libraries.md): Functionalities used by other contracts
- [Params](https://docs.divergence-protocol.com/technical-reference/periphery/params.md): Parameters for functions contained in the periphery contracts:
- [Types](https://docs.divergence-protocol.com/technical-reference/periphery/types.md)
- [Audit Reports](https://docs.divergence-protocol.com/technical-reference/audit-reports.md)
- [🌝Tokenomics](https://docs.divergence-protocol.com/diver-token/tokenomics.md)
- [Token Distribution](https://docs.divergence-protocol.com/diver-token/tokenomics/token-distribution.md)
- [🎃DIVΞR NFT Collections](https://docs.divergence-protocol.com/diver-token/divksr-nft-collections.md)
- [Terms of Service](https://docs.divergence-protocol.com/legal/terms-of-service.md)
- [Risk Disclosure](https://docs.divergence-protocol.com/legal/risk-disclosure.md)
- [🔗Official Links](https://docs.divergence-protocol.com/misc.-info/official-links.md)
- [🙌Media Kit](https://docs.divergence-protocol.com/misc.-info/media-kit.md)
- [🚢Ditanic Test Coins](https://docs.divergence-protocol.com/misc.-info/ditanic-test-coins.md): To experiment with protocol functionality in the live environment, anyone can easily mint Ditanic tokens to use as collateral for options.
