@@ -181,7 +181,7 @@ contract IExchange
181
181
/// depositFee +
182
182
/// (isAccountNew ? accountCreationFee : 0) +
183
183
/// (isAccountUpdated ? accountUpdateFee : 0)
184
- /// If the user sends too much ETH the surplus is immediatly sent back.
184
+ /// If the user sends too much ETH the surplus is sent back immediately .
185
185
///
186
186
/// Note that after such an operation, it will take the operator some
187
187
/// time (no more than MAX_AGE_REQUEST_UNTIL_FORCED) to process the request
@@ -477,11 +477,11 @@ contract IExchange
477
477
/// - WalletSplitPercentage: 1 byte
478
478
///
479
479
/// The RING_SETTLEMENT data availability data is further transformed
480
- /// to make it more compressable :
480
+ /// to make it more compressible :
481
481
/// - The Ring-matcher account ID, fee amount and token ID (the first 5 bytes) are
482
482
/// XORed with the corresponding data from the previous ring
483
483
/// - To group more similar data together we don't store all data
484
- /// for a ring next to eachother but group them together for all rings.
484
+ /// for a ring next to each other but group them together for all rings.
485
485
/// For ALL rings, sequentially:
486
486
/// - Ring-matcher account ID + fee + Token ID
487
487
/// - orderA.orderID + orderB.orderID
@@ -497,7 +497,7 @@ contract IExchange
497
497
/// - Mode 1: An IDecompressor address (20 bytes) is stored after the mode byte.
498
498
/// IDecompressor.decompress() will be called to decompress the following data.
499
499
/// @param offchainData Arbitrary data for off-chain data-availability, i.e.,
500
- /// the multihash of the IPFS file that containts the block data.
500
+ /// the multihash of the IPFS file that contains the block data.
501
501
function commitBlock (
502
502
uint8 blockType ,
503
503
uint16 blockSize ,
@@ -507,7 +507,7 @@ contract IExchange
507
507
)
508
508
external ;
509
509
510
- /// @dev Submit a ZK proof onchain to verify a previouly committed block. Submitting an
510
+ /// @dev Submit a ZK proof onchain to verify a previously committed block. Submitting an
511
511
/// invalid proof will not change the state of the exchange. Note that proofs can
512
512
/// be submitted in a different order than the blocks themselves.
513
513
///
@@ -583,7 +583,7 @@ contract IExchange
583
583
/// depositFee +
584
584
/// (isAccountNew ? accountCreationFee : 0) +
585
585
/// (isAccountUpdated ? accountUpdateFee : 0)
586
- /// If the user sends too much ETH the surplus is immediatly sent back.
586
+ /// If the user sends too much ETH the surplus is sent back immediately .
587
587
///
588
588
/// Note that after such an operation, it will take the operator some
589
589
/// time (no more than MAX_AGE_REQUEST_UNTIL_FORCED) to process the request
@@ -616,17 +616,17 @@ contract IExchange
616
616
/// @dev Deposit Ether or ERC20 tokens to the sender's account.
617
617
///
618
618
/// The total fee in ETH that the user needs to pay is 'depositFee'.
619
- /// If the user sends too much ETH the surplus is immediatly sent back.
619
+ /// If the user sends too much ETH the surplus is sent back immediately .
620
620
///
621
621
/// Note that after such an operation, it will take the operator some
622
622
/// time (no more than MAX_AGE_REQUEST_UNTIL_FORCED) to process the request
623
623
/// and create the deposit to the offchain account.
624
624
///
625
625
/// Warning: the DEX UI should warn their users not to deposit more than 2^96 - 1
626
626
/// tokens in total. If that happens, the user may lose token.
627
- /// This token balance upper limit, however, is large enought for most scenarios.
627
+ /// This token balance upper limit, however, is large enough for most scenarios.
628
628
///
629
- /// @param tokenAddress The adderss of the token, use `0x0` for Ether.
629
+ /// @param tokenAddress The address of the token, use `0x0` for Ether.
630
630
/// @param amount The amount of tokens to deposit
631
631
function deposit (
632
632
address tokenAddress ,
@@ -638,15 +638,15 @@ contract IExchange
638
638
/// @dev Deposit Ether or ERC20 tokens to a recipient account.
639
639
///
640
640
/// The total fee in ETH that the user needs to pay is 'depositFee'.
641
- /// If the user sends too much ETH the surplus is immediatly sent back.
641
+ /// If the user sends too much ETH the surplus is sent back immediately .
642
642
///
643
643
/// Note that after such an operation, it will take the operator some
644
644
/// time (no more than MAX_AGE_REQUEST_UNTIL_FORCED) to process the request
645
645
/// and create the deposit to the offchain account.
646
646
///
647
647
/// Warning: the DEX UI should warn their users not to deposit more than 2^96 - 1
648
648
/// tokens in total. If that happens, the user may lose token.
649
- /// This token balance upper limit, however, is large enought for most scenarios.
649
+ /// This token balance upper limit, however, is large enough for most scenarios.
650
650
///
651
651
/// @param recipient The address of the recipient
652
652
/// @param tokenAddress The adderss of the token, use `0x0` for Ether.
@@ -699,7 +699,7 @@ contract IExchange
699
699
/// Only the owner of the account can request a withdrawal.
700
700
///
701
701
/// The total fee in ETH that the user needs to pay is 'withdrawalFee'.
702
- /// If the user sends too much ETH the surplus is immediatly sent back.
702
+ /// If the user sends too much ETH the surplus is sent back immediately .
703
703
///
704
704
/// Note that after such an operation, it will take the operator some
705
705
/// time (no more than MAX_AGE_REQUEST_UNTIL_FORCED) to process the request
@@ -731,7 +731,7 @@ contract IExchange
731
731
payable ;
732
732
733
733
/// @dev Allows an account owner to withdraw his funds using the balances stored
734
- /// in the merkle tree. The funds will be sent to the owner of the acount .
734
+ /// in the merkle tree. The funds will be sent to the owner of the account .
735
735
///
736
736
/// Trading pubKey matching the offchain Merkle tree need to be provided.
737
737
/// The pubKey may already be reset to 0 when the exchange is shutdown.
@@ -824,7 +824,7 @@ contract IExchange
824
824
/// @dev Allows withdrawing funds after a withdrawal request (either onchain
825
825
/// or offchain) was committed in a block by the operator.
826
826
///
827
- /// Can be called by anyone. The withdrawan tokens will be sent to
827
+ /// Can be called by anyone. The withdrawn tokens will be sent to
828
828
/// the owner of the account they were withdrawn out.
829
829
///
830
830
/// Normally it is should not be needed for users to call this manually.
@@ -946,7 +946,7 @@ contract IExchange
946
946
/// @dev Starts or continues maintenance mode for the specified duration.
947
947
/// The necessary additional downtime minutes will be purchased. The number of
948
948
/// downtime minutes still available for use can be checked with getRemainingDowntime().
949
- /// In maintainance mode, all onchain user requests, including account creation,
949
+ /// In maintenance mode, all onchain user requests, including account creation,
950
950
/// account update, deposits, and withdrawal requests are disabled.
951
951
///
952
952
/// The remaining downtime time will be extended so that the exchange can stay in
@@ -955,7 +955,7 @@ contract IExchange
955
955
/// The exchange owner can exit maintenance mode by calling stopMaintenanceMode()
956
956
/// or by waiting until the remaining downtime is reduced to 0.
957
957
///
958
- /// Once entering the maintainance mode, the operator should still fulfill his duty
958
+ /// Once entering the maintenance mode, the operator should still fulfill his duty
959
959
/// by submitting blocks and proofs until all pending user requests have been taken
960
960
/// care of within the required timeouts. In the maintenance mode, operator can no longer
961
961
/// submit settlement blocks.
@@ -1015,7 +1015,7 @@ contract IExchange
1015
1015
///
1016
1016
/// Note that the exchange can still enter the withdrawal mode after this function
1017
1017
/// has been invoked successfully. To prevent entering the withdrawal mode, exchange
1018
- /// operators need to reset the Merkle tree to its initial state by doingwithdrawals
1018
+ /// operators need to reset the Merkle tree to its initial state by doing withdrawals
1019
1019
/// within MAX_TIME_IN_SHUTDOWN_BASE + (accounts.length * MAX_TIME_IN_SHUTDOWN_DELTA)
1020
1020
/// seconds.
1021
1021
///
@@ -1028,9 +1028,9 @@ contract IExchange
1028
1028
1029
1029
/// @dev Get number of available/processed deposits/withdrawals.
1030
1030
/// @return numDepositRequestsProcessed The num of the processed deposit requests
1031
- /// @return numAvailableDepositSlots The number of slots avalable for deposits
1031
+ /// @return numAvailableDepositSlots The number of slots available for deposits
1032
1032
/// @return numWithdrawalRequestsProcessed The num of processed withdrawal requests
1033
- /// @return numAvailableWithdrawalSlots The number of slots avalable for withdrawals
1033
+ /// @return numAvailableWithdrawalSlots The number of slots available for withdrawals
1034
1034
function getRequestStats ()
1035
1035
external
1036
1036
view
0 commit comments