
Polymarket is one of the most popular crypto apps to date. It lets you bet on real-world outcomes, from elections to economic data to sports, by buying YES or NO tokens on any open market. Hundreds of millions in positions are open at any given time.
Most of them are just waiting, though - and waiting has an opportunity cost.
The Problem With Idle Positions
Buy YES on a market resolving in six months and that capital sits idle until resolution. No yield, no optionality. The position is live but the money behind it isn't doing anything.
Robin Markets is built around this fact. Stake your Polymarket YES or NO tokens and Robin pairs them: find a YES staker and a NO staker on the same market, pull the underlying USDC collateral from Polymarket, and route it into DeFi yield strategies. Both sides keep their market exposure. The collateral works in the meantime. The result is earning APY on positions that would otherwise get nothing additional.
Why Yield Distribution Is Hard
The pairing mechanic is what makes this project interesting, and also what makes the yield calculation hard.
When a market resolves, one side wins and one side loses. That's straightforward. But yield accrues continuously over the life of the position, and the two sides aren't equivalent: a YES token trading at 80 cents represents very different risk from a NO token trading at 20 cents. Splitting yield evenly would be inaccurate. Splitting it at the final resolved price would ignore everything that happened in between.
The right answer is a time-weighted average (TWAP): track the average price of each side across the entire staking period and use that to determine how yield should be distributed. Robin's oracle server fetches price history from Polymarket, computes the weighted average, and signs the result for onchain consumption. The staking vault won't accept a yield update without a valid signature from the trusted oracle.
Where Oasis Comes In
That oracle runs on ROFL.
Runtime Offchain Logic (ROFL) is Oasis's framework for running offchain compute inside a Trusted Execution Environment (TEE). The oracle server executes inside an enclave: it fetches data, runs the TWAP computation, and signs the output without any of that process being visible or modifiable from outside. The staking contract verifies the signature onchain before applying any update, and reverts if the oracle data is too far out of sync with the current chain state.
This is the key property Robin Markets needs. Yield distribution is downstream of oracle output. If that output can be manipulated, so can the payouts. Running the oracle inside a TEE means the computation is verifiable by design. Neither the operator nor any external party can tamper with what the oracle reports.
It's a clean fit for what ROFL is built for: computation that needs to happen offchain, but needs to be trusted onchain.
Learn more and try Robin Markets here.




.png)