Skip to content

Instantly share code, notes, and snippets.

View DinhKhai0201's full-sized avatar
🎯
Focusing

Nguyen Dinh Khai DinhKhai0201

🎯
Focusing
View GitHub Profile
@DinhKhai0201
DinhKhai0201 / token gitbook
Last active January 8, 2026 11:33
token gitbook
# MegaBanX Documentation
---
## Introduction
Welcome to MegaBanX – a next-generation decentralized leverage trading protocol on MegaEth Network. MegaBanX combines decentralized perpetual trading with unified liquidity provision, enabling traders and liquidity providers to participate in global markets with capital efficiency.
This documentation covers everything from foundational concepts through advanced trading strategies and risk management for all user types.
# DEX - Tài liệu Chi tiết Contracts
## Mục lục
1. [Tổng quan kiến trúc](#tổng-quan-kiến-trúc)
2. [AMM Fundamentals - Giải thích Reserve và Công thức](#amm-fundamentals---giải-thích-reserve-và-công-thức)
3. [Constants Contract](#constants-contract)
4. [Math Contract](#math-contract)
5. [PairTemplate Contract](#pairtemplate-contract)
6. [AmmPair Contract](#ammpair-contract)
7. [StableTokenPair Contract](#stabletokenpair-contract)
@DinhKhai0201
DinhKhai0201 / simple-pagination.js
Created September 19, 2024 14:07 — forked from kottenator/simple-pagination.js
Simple pagination algorithm
// Implementation in ES6
function pagination(c, m) {
var current = c,
last = m,
delta = 2,
left = current - delta,
right = current + delta + 1,
range = [],
rangeWithDots = [],
l;
### Keybase proof
I hereby claim:
* I am kai1997 on github.
* I am kai1239 (https://keybase.io/kai1239) on keybase.
* I have a public key ASAJb5KlT0A_kntvXy74QQKoP3VFlfpH9fgeSt9OW2zVBQo
To claim this, I am signing this object: