@@ -22,9 +22,6 @@ contract SovaBTC is ISovaBTC, UBTC20, Ownable, ReentrancyGuard {
2222 /// @notice Minimum deposit amount in satoshis
2323 uint64 public minDepositAmount;
2424
25- /// @notice Maximum deposit amount in satoshis
26- uint64 public maxDepositAmount;
27-
2825 /// @notice Pause state of the contract
2926 bool private _paused;
3027
@@ -94,9 +91,8 @@ contract SovaBTC is ISovaBTC, UBTC20, Ownable, ReentrancyGuard {
9491 constructor () Ownable () {
9592 _initializeOwner (msg .sender );
9693
97- minDepositAmount = 10_000 ; // (starts at 10,000 sats)
98- maxDepositAmount = 100_000_000_000 ; // (starts at 1000 BTC = 100 billion sats)
99- maxGasLimitAmount = 50_000_000 ; // (starts at 0.5 BTC = 50,000,000 sats)
94+ minDepositAmount = 10_000 ; // 10,000 sat = 0.0001 BTC
95+
10096 _paused = false ;
10197
10298 // Set initial withdrawal signer
@@ -145,9 +141,6 @@ contract SovaBTC is ISovaBTC, UBTC20, Ownable, ReentrancyGuard {
145141 if (amount < minDepositAmount) {
146142 revert DepositBelowMinimum ();
147143 }
148- if (amount > maxDepositAmount) {
149- revert DepositAboveMaximum ();
150- }
151144
152145 // Validate the BTC transaction and extract metadata
153146 SovaBitcoin.BitcoinTx memory btcTx = SovaBitcoin.isValidDeposit (signedTx, amount, voutIndex);
@@ -271,32 +264,12 @@ contract SovaBTC is ISovaBTC, UBTC20, Ownable, ReentrancyGuard {
271264 * @param _minAmount New minimum deposit amount in satoshis
272265 */
273266 function setMinDepositAmount (uint64 _minAmount ) external onlyOwner {
274- if (_minAmount >= maxDepositAmount) {
275- revert InvalidDepositLimits ();
276- }
277-
278267 uint64 oldAmount = minDepositAmount;
279268 minDepositAmount = _minAmount;
280269
281270 emit MinDepositAmountUpdated (oldAmount, _minAmount);
282271 }
283272
284- /**
285- * @notice Admin function to set the maximum deposit amount
286- *
287- * @param _maxAmount New maximum deposit amount in satoshis
288- */
289- function setMaxDepositAmount (uint64 _maxAmount ) external onlyOwner {
290- if (_maxAmount <= minDepositAmount) {
291- revert InvalidDepositLimits ();
292- }
293-
294- uint64 oldAmount = maxDepositAmount;
295- maxDepositAmount = _maxAmount;
296-
297- emit MaxDepositAmountUpdated (oldAmount, _maxAmount);
298- }
299-
300273 /**
301274 * @notice Admin function to pause the contract
302275 */
0 commit comments