Skip to content

hypnex-staking

On-chain staking helpers for the Morpheus capital pool. Wraps DepositPool.stake() with MRC 73 referrer support, multi-asset (stETH/USDC/USDT/wBTC), and Builders V4 subnet management.

bash
pip install hypnex-staking
# or
npm install hypnex-staking

The friendly path for end-users is stake.hypnex.xyz. This SDK is for builders integrating staking into their own apps.

Stake into Morpheus capital

python
from hypnex_staking import StakingClient

c = StakingClient(private_key="0x...")  # Ethereum mainnet only

# Single-asset stake with MRC 73 referrer
tx_hash = c.stake(
    asset="USDC",
    amount=1000_000_000,           # 1000 USDC (6 decimals)
    lock_days=180,                  # voluntary additional Power Factor lock
    referrer="0x22B5C0075372E743042b2d62b3D254425Eb957D8",
)

The capital pool lives on Ethereum mainnet. After staking:

  • Your USDC is supplied to Aave for lending yield.
  • MOR emissions accrue to you on top of underlying yield.
  • Per MRC 46, your own MOR claim is locked 90 days.
  • Per MRC 73, your referrer's MOR is unlocked immediately.

Builders V4 subnets

python
from hypnex_staking import BuildersClient

c = BuildersClient(chain="arbitrum", private_key="0x...")

# Read subnet TVL
sid = c.subnet_id_of("Hypnex")           # Hypnex subnet on Arbitrum
data = c.get_subnet_data(sid)
print(data.deposited / 1e18, "MOR locked")

# Deposit MOR into a subnet (auto-approves if needed)
c.deposit(sid, amount=10 * 10**18)        # 10 MOR

# Claim accumulated rewards (claim_admin only)
c.claim(sid)

Hypnex's own subnet IDs (admin: 0x22B5C0075372E743042b2d62b3D254425Eb957D8):

ChainSubnet ID
Arbitrum One0xf49e6c12044230edf7d651592300618a0e8559a56caac5e078f0c0627d9feb75
Base mainnet0x36c36fde5da66f0a1106c17a2f59868071f320c0df7a34ce1ed217ee585f89cc

TypeScript

ts
import { StakingClient, BuildersClient } from "hypnex-staking";

const c = new BuildersClient({ chain: "arbitrum" });
const sid = c.subnetIdOf("Hypnex");
const data = await c.getSubnetData(sid);
console.log(data.deposited);  // BigInt wei

Source

python-staking/ · typescript-staking/

Released under the MIT License.