bond to override lock limit
This commit is contained in:
@@ -94,3 +94,9 @@ uint256 REPUTATION_LOWERBOUND
|
||||
uint256 LOCKAMOUNT_UPPERBOUND
|
||||
```
|
||||
|
||||
### BOND_DIVISOR
|
||||
|
||||
```solidity
|
||||
uint256 BOND_DIVISOR
|
||||
```
|
||||
|
||||
|
||||
@@ -13,6 +13,7 @@ struct Lock {
|
||||
contract ERC20 token;
|
||||
address buyerAddress;
|
||||
address seller;
|
||||
bool bond;
|
||||
}
|
||||
```
|
||||
|
||||
|
||||
@@ -67,7 +67,7 @@ _Function sighash: 0x6d82d9e0_
|
||||
### lock
|
||||
|
||||
```solidity
|
||||
function lock(address seller, contract ERC20 token, uint80 amount, bytes32[] merkleProof, uint256[] expiredLocks) public returns (uint256 lockID)
|
||||
function lock(address seller, contract ERC20 token, uint80 amount, bytes32[] merkleProof, uint256[] expiredLocks, bool bond) public returns (uint256 lockID)
|
||||
```
|
||||
|
||||
Public method designed to lock an remaining amount of
|
||||
@@ -78,7 +78,7 @@ to a seller whitelist.
|
||||
This method can be performed either by:
|
||||
- An user allowed via the seller's allowlist;
|
||||
- An user with enough userRecord to lock the wished amount;
|
||||
There can only exist a lock per each `_amount` partitioned
|
||||
There can only exist a lock per each `amount` partitioned
|
||||
from the total `remaining` value.
|
||||
Locks can only be performed in valid orders.
|
||||
|
||||
@@ -93,6 +93,7 @@ _Function sighash: 0xdc43221c_
|
||||
| amount | uint80 | The deposit's remaining amount wished to be locked. |
|
||||
| merkleProof | bytes32[] | Provided as a pass if the `msg.sender` is in the seller's allowlist; Left empty otherwise; |
|
||||
| expiredLocks | uint256[] | An array of identifiers to be provided so to unexpire locks using this transaction gas push. |
|
||||
| bond | bool | |
|
||||
|
||||
#### Return Values
|
||||
|
||||
|
||||
Reference in New Issue
Block a user