Lends Math Scale Price To E8
lends_math_scale_price_to_e8Scales a positive oracle price to 8 decimals (e8) by adjusting for the provided decimal count, producing a normalized integer for protocol use.
Instructions
Normalize a positive oracle answer to 8 decimals.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"answer": "<answer>",
"decimals": "<decimals>"
},
"name": "lends_math_scale_price_to_e8"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| answer | Yes | ||
| decimals | Yes |