Skip to main content

PROTO_RESOURCE_SCALE

Constant PROTO_RESOURCE_SCALE 

Source
pub const PROTO_RESOURCE_SCALE: f64 = 100.0;
Expand description

Resource/percentage values use a wire-format scale of two decimal places.

This is a protobuf encoding contract. General percentage arithmetic uses HUNDRED despite both having the same value.