OK the script is working but this week’s result is banal.
Using these testing parameters
# testing# parameters
#circNBT=xxx000
#ppcReserve=yy000
#nuSafe=30000
#bp=400 # BTC price
#pp=0.0010 # PPC price
# total btc buyside
#echo 300 > templist
# the reserved amount of Nubits excluded for buyback calculation.
reserve_fraction=0.15
# PPC reserve against circulating NBT
PPC_res_ratio=0.05
# rate of PPC reserve overflow buying BTC
PPC_buy_BTC_rate=0.1
# NSR buyback ratio against buyback pool
NSR_bb_ratio=0.05
# PPC reserve fill ratio against buyback pool
PPCres_fill_ratio=0.05
# NSR buyback threshold
NSR_bb_threshold=2500
# threshold of PPC reserve overflow buying BTC
PPC_buy_BTC_threshold=1000
Here are some sample test results of the calculation part:
Tier 4 buy side funds total 200.000000 BTC, 110000.000000 PPC, and $30000.000000, valued $154000.000000 (385.000000 BTC)
Of the 800000.000000 NBT in circulation, 15.00 percent (120000.000000 NBT) plus NuSafe are reserved and excluded from the share buyback calculation (375.000000 BTC).
385.000000 - 375.000000 = 10.000000 BTC in the share buyback pool.
The standard is 5.00 percent of this, 0.5000 BTC (equivalent to approximately 200.00 USD)
0.5000 BTC (~200.00 USD) will be used for share buyback next week, subject to a $2500 threshold.
PPC reserve (110.000000 BTC) exceeds 5.00 percent of all circulating NBT by 10.000000 BTC, 10.00 percent of which 1000.0000 PPC (equivalent to approximately 400.00 USD) will be sold for BTC, subject to a $1000 threshold.
Another one
Tier 4 buy side funds total 100.000000 BTC, 110000.000000 PPC, and $30000.000000, valued $114000.000000 (285.000000 BTC)
Of the 800000.000000 NBT in circulation, 15.00 percent (120000.000000 NBT) plus NuSafe are reserved and excluded from the share buyback calculation (375.000000 BTC).
285.000000 - 375.000000 = -90.000000 BTC in the share buyback pool.
The standard is 5.00 percent of this, -4.5000 BTC (equivalent to approximately -1800.00 USD)
Pool is not positive. There will be no buyback next week.
PPC reserve (110.000000 BTC) exceeds 5.00 percent of all circulating NBT by 10.000000 BTC, 10.00 percent of which 1000.0000 PPC (equivalent to approximately 400.00 USD) will be sold for BTC, subject to a $1000 threshold.
yet another one
Tier 4 buy side funds total 300.000000 BTC, 90000.000000 PPC, and $30000.000000, valued $186000.000000 (465.000000 BTC)
Of the 800000.000000 NBT in circulation, 15.00 percent (120000.000000 NBT) plus NuSafe are reserved and excluded from the share buyback calculation (375.000000 BTC).
465.000000 - 375.000000 = 90.000000 BTC in the share buyback pool.
The standard is 5.00 percent of this, 4.5000 BTC (equivalent to approximately 1800.00 USD)
4.5000 BTC (~1800.00 USD) will be used for share buyback next week, subject to a $2500 threshold.
PPC reserve (90.000000 BTC) is less than 5.00 percent of all circulating NBT by 10.000000 BTC,. 5.00 percent of buyback pool 4.5000 BTC (equivalent to approximately 1800.00 USD.) will be used to buy PPC to fill PPC reserve.