Skip to content

Latest commit

 

History

History
32 lines (21 loc) · 690 Bytes

README.md

File metadata and controls

32 lines (21 loc) · 690 Bytes

Ethena TypeScript SDK

This SDK provides utilities for minting and redeeming USDe tokens through the Ethena protocol.

Setup

  1. Install dependencies:
pnpm i
  1. Set the environment variables:
cp .env.example .env
  1. Set configuration in mint_script.ts - Specify the amount, collateral asset, benefactor, and side.

  2. Run the script:

pnpm mint

Instructions for use in a larger project

  1. Copy all files except mint_script.ts to your project.
  2. Add viem to your project dependencies.
  3. Set the environment variables in your project.
  4. Use the utility functions in mint_utils.ts to fetch quotes and generate, sign, and submit orders.