Skip to content

Conversation

@Ansonhkg
Copy link
Contributor

@Ansonhkg Ansonhkg commented Nov 11, 2025

WHAT

  • add a single DEFAULT_BUILDER constant (address + 0.05% fee) and force both spot/perp helpers to always attach it to every Hyperliquid order
  • remove all builder-related inputs from the ability schemas/types and stop passing overrides through the executor
  • introduce an approveBuilder helper/action that simply runs approveBuilderFee for the default builder so users can enable fee sharing without supplying params

USAGE

// BEFORE
await executeSpotOrder({
  params: {
    symbol: 'HYPE/USDC',
    price: '0.25',
    size: '100',
    isBuy: true,
    orderType: { type: 'limit', tif: 'Gtc' },
  },
});


// AFTER
await executeSpotOrder({
  params: {
    symbol: 'HYPE/USDC',
    price: '0.25',
    size: '100',
    isBuy: true,
    orderType: { type: 'limit', tif: 'Gtc' },
    builder: { address: '0xCustom', fee: 100 },
  },
});

@vercel
Copy link

vercel bot commented Nov 11, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Preview Comments Updated (UTC)
vincent-app-dashboard Ready Ready Preview Comment Nov 11, 2025 6:40pm

Base automatically changed from feat/hyperliquid-ability to main November 11, 2025 21:35
Copy link
Contributor

@glitch003 glitch003 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this looks good to me

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants