Skip to content

Ydor-Protocol/ydor-core

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

52 Commits
 
 
 
 
 
 
 
 

Repository files navigation

ydor-core

Yield-bearing stablecoin protocol on Sui implementing multi-strategy yield generation.

Image

Build & Test

cd ydor
sui move build              # Build the Move package
sui move test               # Run unit tests

Scripts

cd ydor/scripts
npm install                 # Install dependencies

# Run TypeScript scripts
npx tsx ./allocation/allocateDeposit.s.ts
npx tsx ./allocation/allocateRebalance.s.ts
npx tsx ./allocation/allocateWithdraw.s.ts
npx tsx ./allocation/harvestExcessYield.s.ts
npx tsx ./mint_redeem/mint.s.ts
npx tsx ./mint_redeem/initiateRedeem.s.ts
npx tsx ./mint_redeem/redeem.s.ts
npx tsx ./whitelist/collateral/onboardCollateral.s.ts
npx tsx ./whitelist/collateral/offboardCollateral.s.ts
npx tsx ./whitelist/strategies/suilendStrategyWhitelist.s.ts
npx tsx ./whitelist/strategies/suilendStrategyRemove.s.ts

Directory Structure

Sources (ydor/sources/)

sources/
├── ydUSD.move                    # Core stablecoin contract
├── strategy_manager.move         # Yield strategy coordinator
├── staked_ydUSD.move            # Staking functionality
└── strategies/
    └── suilend_strategy.move     # Suilend lending integration

Scripts (ydor/scripts/)

scripts/
├── allocation/                   # Strategy allocation scripts
├── mint_redeem/                 # Token minting/redemption
└── whitelist/                   # Collateral/strategy management

Commands

Move Package

  • sui move build - Compile package
  • sui move test - Run tests
  • sui move publish - Deploy to network

Development

  • cd scripts && npm install - Setup script dependencies
  • Scripts located in ydor/scripts/ for protocol interaction

About

Unlocking utility for stablecoins in money markets on Sui

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors