Precompiled Contracts
Precompiled Contracts
// WRONG: Assuming Ethereum's 18 decimals uint256 amount = 1 ether; // 1000000000000000000 staking.delegate(validator, amount); // Delegates 1 trillion tokens! // CORRECT: Using chain's native 6 decimals uint256 amount = 1000000; // 1 token with 6 decimals staking.delegate(validator, amount); // Delegates 1 token
