Resolution is the process of determining the market outcome and declaring whether YES or NO won. It's a permissionless action — anyone can resolve a market when the conditions are met.
The resolver calls resolve_market, which checks if the pump.fun bonding curve account for the token has been closed. If closed → YES wins. If still active and market has expired → NO wins. Cannot resolve before expiry unless the token has graduated.
The program reads the bonding curve's virtual SOL and token reserves to calculate the current market cap. If it's ≥ the target → YES wins. If the market has expired without hitting the target → NO wins.
Can only be resolved after expiry. At that point, the program checks if the token's market cap is ≥ the minimum floor. If yes → YES wins. If below → NO wins.
