Computed (Optional)

Typed Struct (EIP712)

Computed(uint256 index,uint256 value,uint256 add,uint256 sub,uint256 pow,uint256 mul,uint256 div,uint256 mod)

Params

Name
Type

index

uint256

value

uint256

add

uint256

sub

uint256

pow

uint256

mul

uint256

div

uint256

mod

uint256

index

Sequential number.

var

Input variable. Can be any constant value or a variable (externa, returned data, etc), except computed variable with a lower or equal index.

Formula

result=((var+add−sub)pow∗mul/div) mod modresult = ((var + add - sub)^{pow} * mul / div )\bmod{mod}

Last updated