• Difficulty - Medium
    Total Plays - 14
    Allowed Time - 10 sec
    Best Time - 1.252 sec

    What is the most direct risk of “unbounded loops” in on-chain code?

    #A
    #B
    #C
    #D
    Explanation:
    Unbounded loops can make functions exceed block gas limits as state grows, permanently preventing execution—classic denial of service. This is common in airdrop distributions, iterating holders, or clearing arrays. Security interviews test this because it’s a real production failure: “worked in tests” but becomes uncallable at scale. Mitigations include batching/pagination and off-chain indexing.
    Leaderboard
    User
    Rank
    Time Taken
    DeFiArchitect

    DeFiArchitect

    @DeFiArchitect

    1
    1.252 sec
    SmartContractGuru

    SmartContractGuru

    @SmartContractGuru

    2
    1.549 sec
    ChainSavant

    ChainSavant

    @ChainSavant

    3
    1.560 sec
    Tushar Dubey

    Tushar Dubey

    @DataChainTushar

    4
    6.130 sec