LibOpDecimal18Scale18NP

Git Source

Opcode for scaling a number to 18 decimal fixed point.

Functions

integrity

function integrity(IntegrityCheckStateNP memory, Operand) internal pure returns (uint256, uint256);

run

decimal18-scale18 18 decimal fixed point scaling.

function run(InterpreterStateNP memory, Operand operand, Pointer stackTop) internal pure returns (Pointer);

referenceFn

function referenceFn(InterpreterStateNP memory, Operand operand, uint256[] memory inputs) internal pure returns (uint256[] memory outputs);