Skip to content

Conversation

camfairchild and others added 18 commits December 16, 2025 12:09
Put faucet extrinsic behind ‘pow-faucet’ feature.
Resolves #2149

The codebase had two similar exponentiation functions:
- exp_safe (line 172): Robust implementation with input clamping [-20, 20]
  and smart error handling (returns max_value for positive overflow)
- safe_exp (line 1597): Simple wrapper returning 0 on any error

This commit:
- Removes the duplicate safe_exp function from math.rs
- Updates run_epoch.rs to use exp_safe instead

exp_safe is the better choice as it:
1. Clamps input to prevent overflow in the first place
2. Returns max_value (not 0) when large positive inputs overflow
3. Has existing test coverage in tests/math.rs
…hange

Revert root claim default type back to Swap
fix: remove duplicate safe_exp function, use exp_safe instead
@sam0x17 sam0x17 requested review from a team and gztensor December 18, 2025 21:22
@sam0x17 sam0x17 changed the title mainnet deploy 12/18/2025 mainnet deploy 12/19/2025 Dec 19, 2025
@sam0x17 sam0x17 merged commit 6e3d24c into main Dec 19, 2025
196 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.