Increase Collateral
Liquidity needs to be liquid
Approve
const amount = toUint256WithFelts((BigInt('1,000'.replace(/,/g, ''))).toString())
await account0.invoke(
txEscrowContract,
'approve',
{ spender: txFlowContract.address, amount: amount},
{ maxFee: FEE}
)let tokenId = toUint256WithFelts("0")
await account0.invoke(
txEscrowContract,
'increase',
{
tokenId: tokenId,
amount: amount
},
{ maxFee: FEE}
)Last updated