Purpose

Provide you with a brief introduction to some of the important technical aspects of Mango v3 program. This doc is at an intermediate level so if you want a more basic intro to solana programming, check out the links section below. This doc will only help familiarize you with concepts so reading the code is a bit easier. There is no substitute for actually reading the code: https://github.com/blockworks-foundation/mango-v3.

Table of Contents

State Accounts

There are a few major Solana Accounts that you will encounter frequently.

MangoGroup

MangoAccount

MangoCache

PerpMarket