Skip to content

Conversation

@Debugger022
Copy link
Contributor

@Debugger022 Debugger022 commented Jan 29, 2026

The VIP-810 adds the U market (vU) to the already existing Stablecoins e-mode pool (id=1) for both testnet and mainnet.

Configuration

Market: vU (0x3d5E269787d562b74aCC55F18Bd26C5D09Fa245E)
Pool: Stablecoins (ID: 1)
Collateral Factor: 0%
Liquidation Threshold: 0%
Liquidation Incentive: 100% (1.0)
Borrow Allowed: Yes

U is configured as a borrow-only asset (CF=0%, LT=0%), meaning it cannot be used as collateral but can be borrowed using other pool assets as collateral.

Key Features

Direct Borrowing

  • Users can borrow U using USDe (CF=90%) or sUSDe (CF=89.5%) as collateral in the stablecoins e-mode pool
  • U can be supplied to the pool but provides no borrowing power

Cross-Asset Leverage

  • LeverageStrategiesManager supports USDe → U cross-asset leverage
  • Uses EIP-712 signed swap integration via Venus API
  • Flash loan enabled for leverage operations

Core Pool Fallback

  • Stablecoins pool has allowCorePoolFallback enabled
  • Users can combine core pool collateral (e.g., ETH) with e-mode collateral (USDe) for enhanced borrowing power

Test Coverage

Comprehensive mainnet simulation tests:

  • ✅ VIP execution and market configuration
  • ✅ Basic operations: mint, enter market, borrow, repay, redeem
  • ✅ Flash loan functionality
  • ✅ Cross-asset leverage (USDe → U) via LeverageStrategiesManager
  • ✅ Core pool fallback scenarios with combined collateral

…SC testnet

Add U market (vU) to Stablecoins e-mode pool (id=1) with zero collateral factor, liquidation incentive of 1, and borrowing enabled. Includes simulation tests for pre/post-VIP validation.
…SC mainnet

Add U market to Stablecoins e-mode pool (CF=0%, borrow-only) with full test coverage including cross-asset leverage (USDe → U), core pool fallback, and detailed leverage scenario documentation.

- Add mainnet VIP and simulation files (22 passing tests)
- Include all required ABIs for leverage testing
- Remove unused mockU export from testnet
@Debugger022 Debugger022 self-assigned this Jan 30, 2026
@Debugger022 Debugger022 marked this pull request as ready for review January 30, 2026 06:34
Add comprehensive test suite documentation for mainnet and testnet simulations
explaining VIP-810's functionality, test structure, and special configurations.

Improvements:
- Make leverage test timeout configurable via LEVERAGE_TEST_TIMEOUT env var
- Replace this.skip() with console.log + return for clearer test output
- Remove unused chainlink oracle imports and initialization
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants