Docs / Riding
Leaving
In kind, free, any time, without touching the pool. The worst any guard can do is stop the ride trading, never trap it.
Withdrawing in kind
withdraw(rideId, shares) burns shares for the same fraction of the ride's tokens, plus whatever ETH the ride's sales have already returned to your position:
tokensOut = shares * tokenBalance / totalShares ethOut = everything pending on the position, whatever the fraction
- It never touches the pool, so there is no slippage, no price impact and no swap that can fail.
- It is never charged a fee.
- It is always open: boarding, exiting, expired or closed.
- If you were the last tokens in an exiting ride, it closes.
The tokens are sent to your wallet; what you do with them is yours to decide. The ride page offers any fraction from 1% to 100% of your shares.
Claiming ETH
claimEth(rideId) pays the ETH the ride's sales have returned to your shares so far and leaves the shares in place. It reverts with ZeroAmount when there is nothing pending. ETH is also settled and paid whenever you join again or withdraw.