just submitted wexel for the stocklana hackathon
been building this all week
the stock market closes at 4pm
tokenized stocks on
@solana don't, so the big moves happen at 3am while you're asleep
wexel fixes that.
you set a rule once like buy $50 of apple if it drops 5%,
and it trades for you day or night.
pay with anything you hold.
sol, usdc, that coin you forgot about.
it turns straight into the stock.
the part that matters the most?
your money never leaves your wallet,
wexel can only spend what you approve, $50 means $50
the program is anchor, written in rust,
4 instructions: create_rule, execute, settle, cancel_rule.
every rule is its own account,
it holds the trigger, the spend cap, the slippage limit and the expiry.
nothing else, no vault, no deposits.
when you create a rule the same signature approves a delegate, but the delegate is the program's own PDA, not the bot's wallet, capped to exactly what the rule can spend.
new rules add to that allowance instead of overwriting it so your old rules keep working and revoke kills all of it in one tap.
when a rule fires the keeper sends one atomic transaction execute, then the jupiter swap, then settle
all three land together or none of them do.
execute checks the trigger and the expiry then moves exactly the capped amount using the PDA the swap sends the stock straight to your wallet, never to the bot.
settle checks your balance went up by at least the minimum if it didn't, the whole transaction reverts
your money never moved.
the bot cant just skip settle either execute uses instruction introspection to read its own transaction
if settle isnt after it, execute refuses to run.
i tried to cheat it on devnet made the keeper pay half, everything unwound made it skip settle, it refused to run
caught a sneaky one too.
xstocks are token 2022 tokens with scaled balances
they pay dividends by growing your balance, so what you see isnt whats stored.
the program reads that multiplier straight from the token
and does all the maths with it.
without that, sell rules would sell too many shares
the keeper is a node service polls the rules, prices them with jupiter, runs cheap checks first so it doesn't burn fees on dead trades
for the demo i run a live fork of solana mainnet with surfpool on railway.
real xstocks, real usdc, real jupiter routes and pools
a small gatekeeper blocks the fork's cheat commands.
so nobody mints free money
bought apple at $339.00 on that live copy of mainnet
live price was $338.97 real stocks, real routes, practice money.
you can try it right now.
tap get $1,000, buy stocks, set rules.
no signup, no wallet install
wexel.online
code is open on github.
built with anchor, jupiter, surfpool and
@PreStocks data
The stock market closes. Your opportunity does not.
What if you could set a stock rule once and let it run 24/7?
Buy the dip.
Buy the climb.
Take profit.
Stop the loss.
That is Wexel.
Built on Solana.