This SDK provides utilities for minting and redeeming USDe tokens through the Ethena protocol.
- Install dependencies:
pnpm i- Set the environment variables:
cp .env.example .env-
Set configuration in
mint_script.ts- Specify the amount, collateral asset, benefactor, and side. -
Run the script:
pnpm mint- Copy all files except
mint_script.tsto your project. - Add viem to your project dependencies.
- Set the environment variables in your project.
- Use the utility functions in mint_utils.ts to fetch quotes and generate, sign, and submit orders.