Interim checkin

This code contains working "return address" semantics for CONVERT and YIELD.
This commit is contained in:
Some Random Crypto Guy
2024-02-16 11:02:11 +00:00
parent a3a7f686f3
commit 606580a173
24 changed files with 457 additions and 281 deletions
+1 -7
View File
@@ -202,13 +202,7 @@ namespace oracle
{
for (const auto& asset: assets) {
if (asset.asset_type != asset_type) continue;
if (asset_type == "FULM") return asset.spot_price;
if (asset_type == "FUSD") {
boost::multiprecision::uint128_t exchange_128 = COIN;
exchange_128 *= COIN;
exchange_128 /= asset.spot_price;
return exchange_128.convert_to<uint64_t>();
}
return asset.spot_price;
}
return 0;
}