So, right now, in order to open an order, you need to actually commit the collateral DAI to the contract.
Is it technically possible for the contract to only take _daiCollateralValue from the seller when the buyer commits _daiPaymentValue?
Obviously the transaction would fail if the seller hadn't approve the contract to spend at least _daiCollateralValue, or didn't have enough DAI to cover the _daiCollateralValue.
In a world where multiple sell orders could be placed by a single address, this would allow sellers to place a number of orders for different values / _deliveredByBlock - without actually needing to commit the DAI until a buyer takes one.
Obviously this complicates things slightly.
But my question is whether it's technically possible.
So, right now, in order to open an order, you need to actually commit the collateral DAI to the contract.
Is it technically possible for the contract to only take _daiCollateralValue from the seller when the buyer commits _daiPaymentValue?
Obviously the transaction would fail if the seller hadn't approve the contract to spend at least _daiCollateralValue, or didn't have enough DAI to cover the _daiCollateralValue.
In a world where multiple sell orders could be placed by a single address, this would allow sellers to place a number of orders for different values / _deliveredByBlock - without actually needing to commit the DAI until a buyer takes one.
Obviously this complicates things slightly.
But my question is whether it's technically possible.