mirror of
https://github.com/logos-storage/logos-storage-contracts-eth.git
synced 2026-01-03 22:03:08 +00:00
marketplace: clarify why we flow funds from client to itself
Co-Authored-By: Adam Uhlíř <adam@uhlir.dev>
This commit is contained in:
parent
bdee8de9cc
commit
895e36fbba
@ -159,6 +159,9 @@ contract Marketplace is SlotReservations, Proofs, StateRetrieval, Endian {
|
||||
AccountId account = _vault.clientAccount(request.client);
|
||||
_vault.lock(fund, expiresAt, endsAt);
|
||||
_transferToVault(request.client, fund, account, price);
|
||||
|
||||
// start flow from client to itself, to make sure that funds that are not
|
||||
// paid to hosts will slowly become designated to the client
|
||||
_vault.flow(fund, account, account, pricePerSecond);
|
||||
|
||||
emit StorageRequested(id, request.ask, expiresAt);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user