This repository houses course resources and discussions for the course.
Please refer to this for an in-depth explanation of the content:
- Website - Join Cyfrin Updraft and enjoy 50+ hours of smart contract development courses
- Twitter - Stay updated with the latest course releases
- LinkedIn - Add Updraft to your learning experiences
- Discord - Join a community of 3000+ developers and auditors
- Codehawks - Smart contracts auditing competitions to help secure web3
- What is GMX V2 and how it works
- DeFi terminologies
- Perpetual swap
- Leverage
- Long and short
- Funding fee
- Write smart contracts that interact with GMX V2
- Expand DeFi knowledge
- Audit contests and bug bounties
- Build application that integrates with GMX V2
- Build your own perpetual exchange
- DeFi basic terminologies
- DAI, USDC, WETH, WBTC, ERC20 decimals, AMM, price oracle, Arbitrum, etc..
- Intermediate to advanced Solidity
- Solidity
library(State changing calls through alibraryusesdelegatecall) multicall
- Solidity
- Advanced Foundry
- Test on fork
- Console log to debug
- Foundry setup
- Use transcation debugger such as tenderly.co to debug transactions
git clonegmx-syntheticsgit clonegmx-contracts- All course notes can be found under notes
- Ask questions on discussions
- Quick guide on how to bridge ETH to Arbitrum
- What is GMX?
- How GMX works
- Perpetual swap
- Long and short
- Leverage
- Purpose of leverage
- Markets
- 2 types of market
- Liquidity provider
- Position size
- Examples of position profit and loss
- Liquidation
- Open interest
- Funding fee
- 4 types of open interest
- Contract architecture
- Graph - payoffs for positions
- Fees
- Purpose of price impact
- Price impacts for swap, positions and liquidity
- Price impact formula
- Graph - price impact
- Virtual inventory
- Swap fee on amount in
- Position
- Borrowing fee math
- How to update borrowing fee
- Graph - kink borrowing factor
- Funding fee math
- How is funding fee updated
- How is funding factor per second calculated
- Order types
- Market swap
- Limit swap
- Long
- Short
- TP and SL
- Claim funding fees
- Foundry exercises
- GM pool
- GLV vault
- Foundry exercises
- GMX
- tx - Stake GMX
- tx - Unstake GMX
- tx - Claim rewards
- tx - Delegate
- Foundry exercises
- Application architecture
- Callback
- Foundry exercises
Market swaps
Limit swaps
Trades
Liquidation
Liquidity
- Buy GLV part 1
- Buy GLV part 2
- Sell GLV part 1
- Sell GLV part 2
- Buy GM ETH/USD part 1
- Buy GM ETH/USD part 2
- Sell GM ETH/USD part 1
- Sell GM ETH/USD part 2
- Buy BTC/USDC GLV part 1
- Buy BTC/USDC GLV part 2
- Buy BTC/USDC GM part 1
- Buy BTC/USDC GM part 2
- Sell BTC/USDC GM part 1
- Sell BTC/USDC GM part 2
- Shift ETH/USDC to LDO/USD part 1
- Shift ETH/USDC to LDO/USD part 2
Stake
Bridge from ETH mainnet to Arbitrum

