Weekly Margin Log #2

Ultramarkets Weekly Margin Log #2 — TWAP price guard after a live vault attack, CTF and NegRisk integration for market resolution, improved deposit process via polymarket tipping, anti-sybil enforcement, and experimental market gating. Product updates for March 7–13, 2026.

Weekly Margin Log #2
Ultramarkets Weekly Margin Log #2 — product updates log for the week of March 7 to 13, 2026

Ultramarkets Weekly Margin Log #2 — product updates for the week of March 7 to 13, 2026. TWAP price guard, CTF and NegRisk integration, multi-method deposits, anti-sybil enforcement, and more.

This week's shipping log from Ultramarkets.

This is log #2. If you missed the first one, start here.

Last week was about getting the fundamentals right — unsafe trade protection, market close notifications, nonce management. This week was about hardening the system after a real attack, completing the position lifecycle through market resolution, and making it easier to get capital onto the platform.


TWAP Price Guard: Stopping Price Manipulation Before It Starts

We published the full story separately: How a Price Manipulation Attack Hit Our Vault — and What We Built to Stop It.

Also wanted to mention that we genuinely appreciate all the reads and feedback shared through DMs! Will reach out to get early feedback on our future articles 😀


Market Resolution: CTF and NegRisk Integration

Until this week, the system didn't have a complete path for handling what happens when a Polymarket market resolves while positions are still open. Now it does.

We integrated Polymarket's Conditional Token Framework (CTF) for market resolution and redemption. When a market resolves, the outcome tokens that back your leveraged position need to be redeemed through Polymarket's CTF contracts to recover the underlying USDC. The system now handles this full lifecycle — detecting resolution, calling the redemption path accurately, parsing the payout, and settling the position through the vault.

Alongside CTF, we integrated the NegRisk adapter. Many Polymarket markets — especially multi-bracket markets like the crude oil price targets we listed this week — use negatively-correlated risk structures where outcomes are interdependent. These require a different redemption contract and a different encoding of the position side. The system now branches correctly between standard CTF and NegRisk paths based on the market type.

Close previews and active position pricing also now use actual resolved outcome prices (1 or 0) instead of stale orderbook data. When a market resolves, the orderbook may no longer exist. Previously this could cause errors or misleading prices; now the system recognizes the resolved state and prices accordingly.

This is the kind of infrastructure that's invisible when it works. Without it, any position open at the moment a market resolves would get stuck in an unrecoverable state.


Deposit Upgrades: Tipping from Polymarket Account, Direct Deposit via External Wallets, etc

Getting capital onto the platform just got significantly easier.

The new deposit flow supports multiple funding methods in a single modal: card payments for fiat on-ramp, direct crypto send across multiple networks and a connect-wallet flow that lets you deposit from an external wallet. Each method is designed to meet traders where they are — whether you're topping up from an external wallet, sending USDC from an exchange, or buying in with a card for the first time, or even directly from your Polymarket account through the tipping feature. Watch the video below for a full walk-through of the tipping feature.

0:00
/0:56

Anti-Sybil Identity Verification

Social linking for X and Discord shipped as a full identity verification layer, building on the anti-sybil groundwork from last week. The key change: social link bonuses are now deferred to settlement rather than applied immediately. This prevents gaming where someone links, collects the bonus, and unlinks.

Starting Week 3, at least one social connection (Discord or X) is required for Ultra Points eligibility. Week 2 settlement was unaffected. If you're in Genesis Season and haven't linked yet, your weekly scores are still accruing — but they won't convert to Ultra Points without at least one verified connection.


Points Infrastructure

Under the hood, the points system got more robust. Admins can now manually trigger snapshots and run per-user snapshots for diagnostics — useful for debugging edge cases without waiting for the next automated cycle. The daily score upsert is now atomic, preventing the duplicate-key failures that could occur during high-frequency snapshot runs. And all snapshot operations now enforce genesis date bounds, so data outside the active season can't leak into calculations.

These aren't visible to traders, but they're the plumbing that ensures your weekly settlement is accurate.


Experimental Market Gating

We added an isExperimental flag to markets. Experimental markets are only visible and tradeable by whitelisted users. This lets us test new market types — like the live sports markets we've trialed 😆 — with a small, controlled group only.

If you're not seeing a market that someone else mentioned, it might be gated. This is intentional — we aim to validate the mechanics with a small group first.


Vault Safety: Emergency Repay and Zero-Return Settlement

Two contract updates this week.

Emergency repay (introduced last week) is now deployed and live on the PositionManager. It gives the protocol a clean path to return funds to the vault outside normal settlement, with proper accounting — utilized assets are adjusted and a yield snapshot is triggered, so umUSD share price reflects the correction immediately.

New this week: zero-return settlement. Previously, the settlement function couldn't process a position where the returned amount was zero — a total loss scenario where the vault's entire loan is lost and there's nothing to return. This is a real edge case reported by some of our closed beta users, but it needs to settle cleanly rather than getting stuck in the pipeline. The contract now handles it correctly.


That's week two. A lot of this work is foundation — the TWAP guard protects the vault from price manipulation, CTF and NegRisk handle the full position lifecycle through resolution, the deposit modal removes funding friction that our users were commonly facing, and the points infrastructure is ready for social linking enforcement going live with the upcoming Week 3 settlement.

Every week, we push the Margin Layer for Prediction Markets a little further.