Fetch bitcoin price as deposit in state machine tester
TBTCSystem won't give the time of day to a non-deposit these days...
@@ -38,7 +38,7 @@ const System = {
expectedBond: async ({ TBTCSystem, deposit }) => {
const lotSize = await deposit.lotSizeSatoshis()
const initial = await TBTCSystem.getInitialCollateralizedPercent()
- const price = await TBTCSystem.fetchBitcoinPrice()
+ const price = await TBTCSystem.fetchBitcoinPrice({ from: deposit.address })
return price.mul(lotSize).mul(initial).div(new BN(100))
},
fundingDifficulty: async () => {
