LibOpDecimal18ScaleNNP

Git Source

Opcode for scaling a decimal18 number to some other scale N.

Functions

integrity

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

run

decimal18-scale-n Scale from 18 decimal to n decimal.

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);