Skip to content

Commit a7772a1

Browse files
committed
change the min transaction value temporarily
1 parent ecafc78 commit a7772a1

File tree

12 files changed

+40
-38
lines changed

12 files changed

+40
-38
lines changed

contracts/Auction.cash

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ contract Auction() {
6767
// To facilitate higher precisions and since decimals do not exist in VM, we multiply
6868
// it by 1e6 (1000000) and call the units as 'points'.
6969

70-
// TODO: make this 1000000 (0.01 BCH)
70+
// TODO: Make this 1000000 (0.01 BCH)
7171
int constant minStartingBid = 10000;
7272
// 1. Decay points (0.0003% per step)
7373
int decayPoints = minStartingBid * currentRegistrationId * 3;
@@ -76,8 +76,9 @@ contract Auction() {
7676
// 3. Subtract price points by decay points to get the current auction price.
7777
int currentAuctionPrice = (currentPricePoints - decayPoints) / 1e6;
7878

79-
// Set the minimum auction price to 20000 satoshis.
80-
currentAuctionPrice = max(currentAuctionPrice, 20000);
79+
// TODO: Make this 20000
80+
// Set the minimum auction price to 6000 satoshis.
81+
currentAuctionPrice = max(currentAuctionPrice, 6000);
8182

8283
// Every auction begins with a min base value of at least currentAuctionPrice satoshis.
8384
require(tx.outputs[3].value >= currentAuctionPrice, "Output 3: auction price must be at least minimum calculated price");

contracts/Factory.cash

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,8 +136,9 @@ contract Factory(
136136
int minimalDeduction = tx.inputs[3].value - 5000;
137137
int creatorIncentive = (minimalDeduction * (1e5 - tx.inputs[3].tokenAmount) / 1e5);
138138

139+
// TODO: Make this 20000
139140
// If incentive is > 20000 satoshis, then it goes to the creator, else it goes to the miners.
140-
if(creatorIncentive > 20000) {
141+
if(creatorIncentive > 1000) {
141142
require(tx.outputs[6].tokenCategory == 0x, "Output 6: creator incentive must be pure BCH (no token category)");
142143
// Enforce that the other piece of the fee goes to the miners.
143144
require(tx.outputs[6].value == creatorIncentive, "Output 6: creator incentive satoshi value must match calculated incentive");

lib/compiled/Accumulator.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,5 +130,5 @@ export default {
130130
'name': 'cashc',
131131
'version': '0.11.5',
132132
},
133-
'updatedAt': '2025-08-29T11:48:29.834Z',
133+
'updatedAt': '2025-08-29T15:57:18.202Z',
134134
};

lib/compiled/Auction.ts

Lines changed: 18 additions & 18 deletions
Large diffs are not rendered by default.

lib/compiled/Bid.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,5 +120,5 @@ export default {
120120
'name': 'cashc',
121121
'version': '0.11.5',
122122
},
123-
'updatedAt': '2025-08-29T11:48:28.903Z',
123+
'updatedAt': '2025-08-29T15:57:17.312Z',
124124
};

lib/compiled/ConflictResolver.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,5 +95,5 @@ export default {
9595
'name': 'cashc',
9696
'version': '0.11.5',
9797
},
98-
'updatedAt': '2025-08-29T11:48:29.656Z',
98+
'updatedAt': '2025-08-29T15:57:18.028Z',
9999
};

lib/compiled/Factory.ts

Lines changed: 8 additions & 8 deletions
Large diffs are not rendered by default.

lib/compiled/Name.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -345,5 +345,5 @@ export default {
345345
'name': 'cashc',
346346
'version': '0.11.5',
347347
},
348-
'updatedAt': '2025-08-29T11:48:28.716Z',
348+
'updatedAt': '2025-08-29T15:57:17.136Z',
349349
};

lib/compiled/NameEnforcer.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,5 +95,5 @@ export default {
9595
'name': 'cashc',
9696
'version': '0.11.5',
9797
},
98-
'updatedAt': '2025-08-29T11:48:29.276Z',
98+
'updatedAt': '2025-08-29T15:57:17.676Z',
9999
};

lib/compiled/OwnershipGuard.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,5 +105,5 @@ export default {
105105
'name': 'cashc',
106106
'version': '0.11.5',
107107
},
108-
'updatedAt': '2025-08-29T11:48:29.455Z',
108+
'updatedAt': '2025-08-29T15:57:17.853Z',
109109
};

0 commit comments

Comments
 (0)