Yield-bearing stablecoin protocol on Sui implementing multi-strategy yield generation.
cd ydor
sui move build # Build the Move package
sui move test # Run unit testscd 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.tssources/
├── ydUSD.move # Core stablecoin contract
├── strategy_manager.move # Yield strategy coordinator
├── staked_ydUSD.move # Staking functionality
└── strategies/
└── suilend_strategy.move # Suilend lending integration
scripts/
├── allocation/ # Strategy allocation scripts
├── mint_redeem/ # Token minting/redemption
└── whitelist/ # Collateral/strategy management
sui move build- Compile packagesui move test- Run testssui move publish- Deploy to network
cd scripts && npm install- Setup script dependencies- Scripts located in
ydor/scripts/for protocol interaction