Space-Native Anti-Flashloan & Reentrancy Guard
The world’s first physical spacetime security modifier for BNB Smart Chain. Eliminating atomic single-block flashloan exploits and multi-block MEV bribes by enforcing relativistic satellite orbital epochs.
Live Attack Simulation: Atomic Flashloan vs SpaceGuard
Experience why standard EVM timestamps collapse under flashloans, while SpaceGuard physically enforces atomic transaction reverts.
SpaceGuard requires verified orbital epoch progression. Because Starlink satellites orbit at 7.6 km/s, a 30-second interval requires the satellite to physically advance 228 kilometers. In an atomic single-block flashloan, physics cannot be compressed into 0 seconds. The contract instantly triggers an EVM revert, protecting the vault.
Technical Comparison: Existing EVM Time Mechanisms vs SpaceGuard
Architectural breakdown demonstrating why software-only timestamps fail against modern MEV and flashloans.
| Dimension | EVM block.timestamp | Same-Block (block.number) | TWAP / Oracle Lag | SkyRelay SpaceGuard |
|---|---|---|---|---|
| Time Origin | Validator-written variable (Subjective) | Block counter increment (Integer) | Averaged historical spot samples | Starlink 550 km LEO Doppler Ephemeris (Objective) |
| Validator Collusion | Vulnerable (Drift tolerance spoofing) | Vulnerable (Multi-block bribes / PBS) | Vulnerable to capital-backed multi-block manipulation | Mathematically immune (Keplerian physics) |
| Atomic Flashloan Defense | Bypassed in 0s within single block | Stops primitive flashloans; breaks composability | Delayed response causes bad-debt liquidations | Atomic Revert (Enforces real physical Δt > 0) |
| Multi-Block MEV Resistance | Fails (Validators manipulate timestamps across blocks) | Fails (Attacker spaces txs across N and N+1) | Fails on low-liquidity pairs with capital backing | Requires continuous SGP4 Doppler orbital trajectory match |
| DeFi Composability | High (No protection) | Broken (Reverts legitimate aggregators like 1inch) | High (High pricing lag) | Preserved via Dynamic Shielding (Whales/Drains only) |
| Physical Grounding | None (Digital construct) | None (Digital construct) | None (Digital construct) | 7.6 km/s orbital velocity & Ku-band RF Doppler curve |
Developer Integration: 3 Lines of Solidity
Integrate SpaceGuard into any BSC lending pool, yield vault, or liquidity pair without moving liquidity.
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.24;
import { SpaceGuard } from "@skyrelay/contracts/SpaceGuard.sol";
/// @title ProtectedDeFiVault
/// @notice DeFi liquidity vault protected by SkyRelay SpaceGuard.
contract ProtectedDeFiVault is SpaceGuard {
constructor(address beaconAddress) SpaceGuard(beaconAddress) {}
/// @notice Withdraws liquidity with SpaceGuard dynamic shielding.
/// @dev Normal users withdraw instantly; whale drains and atomic flashloans
/// trigger the physical satellite orbital epoch check.
function withdraw(
uint256 amount,
uint256 beaconId
)
external
dynamicShield(
getActionKey(address(this), msg.sig),
amount,
50_000 ether, // Threshold: 50,000 Native Token
beaconId,
30 seconds // Required physical orbital interval
)
{
// Vault payout logic here
}
}Inherit `SpaceGuard` in your vault or pool implementation.
Add `dynamicShield` or `onlyPhysicalInterval` to sensitive functions.
Atomic flashloans and multi-block MEV drains are neutralized.
