graph LR
Start(["`Start`"])
1["`<strong>userInteraction</strong><br>config`"]
4["`<strong>bluefin</strong><br>auto rebalance`"]
3["`<strong>bluefin</strong><br>get position detail`"]
2["`<strong>bluefin</strong><br>fetch user position`"]
5["`<strong>userInteraction</strong><br>sign transaction`"]
Start ---> 1
1 ---> 2
4 ---> 5
3 ---> 4
2 ---> 3
Automatically rebalance your Bluefin liquidity positions with a single click when prices move outside your set range.
This workflow is designed for DeFi users who have liquidity positions on Bluefin and want to automatically rebalance them when prices move outside their set range.
Liquidity positions can become inefficient when prices move outside the intended range, requiring manual rebalancing which is time-consuming. This workflow automatically monitors your positions, detects when prices move beyond your specified gap percentage, and rebalances positions with a single click, helping you maintain optimal position efficiency.
Fetches your active positions from Bluefin
Filters positions matching your specified token pair
Gets the current market price
Calculates new price ranges based on current price and gap percentage
Signs the rebalancing transaction using your wallet
Submits the transaction to the blockchain and confirms success
Enter your wallet address in the config node (Sui wallet)
Set coin A in the config node (e.g., "wal")
Set coin B in the config node (e.g., "sui")
Set the Price Gap(%) in the config node (e.g., "1")
Bluefin - Get User Positions: Retrieves all liquidity positions for a user account on Bluefin protocol
Bluefin - Get Position Details: Retrieves detailed information for a specific liquidity position, including price range, token amounts, and current status
Bluefin - Auto Rebalance Position: Automatically rebalances a liquidity position to new price ranges
ChainKit - Sign Sui Transaction: Signs a transaction on Sui blockchain
Tip: This executable workflow was automatically generated by SeamFlux Bot. To use it, create an execution and test it with your data to ensure it meets your needs.
Ready to get started?
to run this template or create a scheduled task, and ask AI about detailed node execution steps.
Run Locally — download this workflow as a ZIP or run it via Seamflux CLI in your terminal; use the "Run Locally" button above to choose.
Build a workflow from scratch using AI chat. No complex parameter configuration or flowchart dragging needed.