SShortSingh.
Back to feed

30-Day Atomic Swap Carries a Hidden 688 bps Option Cost, Analysis Shows

0
·1 views

A technical analysis by the ShortSingh development team reveals that hash-time-locked atomic swaps used for forward settlement embed a significant hidden cost in the form of a free option granted to the secret-holding party. Because only the secret holder can choose to reveal and complete the trade, they effectively own an American-style option to walk away if prices move against them before the timelock expires. Using the Brenner-Subrahmanyam approximation at 60% annualized volatility, this embedded option is valued at approximately 688 basis points of notional for a 30-day timelock. Even a one-hour timelock generates an option worth around 26 basis points, far exceeding typical atomic swap platform fees of 1–2 basis points. The analysis concludes that while short-dated atomic settlement remains viable due to sub-linear time scaling, longer-term forward settlement via atomic swaps imposes costs that dwarf any fee savings advertised by settlement platforms.

Read the full story at DEV Community

This is an AI-generated summary. ShortSingh links to the original source for the complete article.

Discussion (0)

Log in to join the discussion and vote.

Log in

Related stories

0
ProgrammingDEV Community ·

RustDesk gains GitHub traction as open-source, self-hostable remote desktop tool

RustDesk, an open-source remote desktop application built with Rust, has gained 84 GitHub stars recently due to growing interest in self-hosted infrastructure. Unlike conventional remote desktop clients, RustDesk uses a two-server model — a rendezvous server for peer discovery and a relay server for connections when direct peer-to-peer links are unavailable. The architecture gives operators full control over traffic and metadata, making it appealing to teams wary of third-party connection paths. The project can be deployed quickly using Docker, though production use requires careful management of server keys, firewall rules, TLS configuration, and software updates. Developers are advised to test RustDesk in a private lab environment before rolling it out broadly, given the operational complexity of self-hosting.

0
ProgrammingDEV Community ·

How to Diagnose and Fix Full Disk Space on a Linux Server

Linux administrators facing full-disk alerts can use a structured set of command-line tools to identify and resolve the issue quickly. The process begins with 'df -h' and 'df -i' to pinpoint which filesystem or inode table is exhausted, followed by 'du' commands to drill down into the largest directories. The 'find' command helps surface oversized individual files such as core dumps, forgotten database exports, or misbehaving logs. A lesser-known cause is deleted files that remain open by active processes, which can be detected using 'lsof +L1' and resolved by restarting the holding process. Once the culprit is identified, targeted cleanup tools — including Docker pruning, journalctl vacuuming, and package manager cleanup — can reclaim disk space efficiently.

0
ProgrammingDEV Community ·

How a Preview-First Workflow Makes AI Noise Removal More Trustworthy

A preview-first design approach for background noise removal tools prioritizes user confidence by letting people hear a sample result before committing to a full export. The workflow follows a clear sequence: upload, compatibility check, preview, side-by-side comparison, and then an export decision. A key principle is that the before-and-after audio samples must cover the same time segment, eliminating ambiguity that could mislead users into misjudging the processing quality. Compatibility checks are positioned early in the flow to catch unsupported file types or account limitations before any processing work begins. Modeling each stage as a distinct system state, rather than a flag on the final job, prevents the preview from becoming fragile or misleading.

0
ProgrammingDEV Community ·

Why Benchmarking Only Success Cases Creates Hidden Performance Debt

A software developer highlights a common pitfall where performance benchmarks measure only successful code paths, ignoring the cost of cache misses and exception handling. In production environments, failed lookups and debug logging can silently degrade performance, yet most AI-generated code patches optimize for the clean, happy path. The author built a small Python harness to compare three lookup variants — try/except, silent dict.get, and logged dict.get — across a deliberate 20% miss rate. Results are measured in both milliseconds and peak memory to avoid misleading single-metric conclusions. The article, prepared as part of MonkeyCode's product outreach, encourages developers to test with realistic miss-rate mixes rather than relying on idealized benchmarks.