You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
-**Economic Incentives**: Nodes stake ETH and can be slashed for bad behavior, where in contrast, good behavior rewards the nodes with ORA token
364
364
-**Decentralized**: Anyone can participate by staking, no central authority needed
@@ -378,7 +378,7 @@ yarn simulate:staking
378
378
379
379
π€ This will start automated bots that simulate honest and malicious node behavior, frequent and stale reports, and demonstrate how slashing and median aggregation impact the reported price. You can update the price variance and skip probability from the front-end as well.
380
380
381
-
**### π₯ Goals:**
381
+
### π₯ Goals:
382
382
383
383
- Understand how economic incentives drive honest behavior
384
384
- See how slashing mechanisms enforce data freshness
@@ -447,7 +447,7 @@ sequenceDiagram
447
447
448
448
π Open the `packages/hardhat/contracts/02_Optimistic/OptimisticOracle.sol` file to implement the optimistic oracle functionality.
@@ -478,7 +478,7 @@ Here are more granular instructions on setting up the EventAssertion struct:
478
478
- reward should be `msg.value`
479
479
- bond should be `FIXED_BOND`
480
480
- startTime = `startTime`
481
-
- endTime = `endTIme`
481
+
- endTime = `endTime`
482
482
- description = `description`
483
483
- any remaining properties can be initialized with the default values (`false`, `address(0)`, etc.)
484
484
@@ -791,7 +791,7 @@ This function enables the asserter to get a refund of their posted reward when n
791
791
792
792
This is the method that the decider will call to settle whether the proposer or disputer are correct.
793
793
794
-
It should be;
794
+
It should be:
795
795
796
796
* π§ββοΈ Only callable by the `decider` contract
797
797
@@ -949,7 +949,7 @@ yarn simulate:optimistic
949
949
950
950
π€ This will start automated bots that create assertions, propose outcomes, dispute proposals, and settle via the decider, so you can observe rewards, bonds, fees, and timing windows in a realistic flow.
951
951
952
-
**### π₯ Goals:**
952
+
### π₯ Goals:
953
953
954
954
- Users can assert events with descriptions and time windows
955
955
- Users can propose outcomes for asserted events
@@ -963,23 +963,16 @@ yarn simulate:optimistic
963
963
964
964
π§ Now let's analyze the strengths and weaknesses of each oracle design.
|**Security**| Low (trusted authority) | Medium (economic incentives) | High (dispute resolution) |
975
-
976
971
|**Decentralization**| Low | High | Medium |
977
-
978
972
|**Cost**| Low | Medium | High |
979
-
980
973
|**Complexity**| Simple | Medium | Complex |
981
974
982
-
**### π€ Key Trade-offs:**
975
+
### π€ Key Trade-offs:
983
976
984
977
1.**Whitelist Oracle:**
985
978
@@ -1013,7 +1006,7 @@ yarn simulate:optimistic
1013
1006
1014
1007
- β More complex
1015
1008
1016
-
**### π― Understanding the "Why":**
1009
+
### π― Understanding the "Why":
1017
1010
1018
1011
Each oracle design solves different problems:
1019
1012
@@ -1059,7 +1052,7 @@ Each oracle design solves different problems:
1059
1052
1060
1053
> π¦ Since we have deployed to a public testnet, you will now need to connect using a wallet you own or use a burner wallet. By default π₯ `burner wallets` are only available on `hardhat` . You can enable them on every chain by setting `onlyLocalBurnerWallet: false` in your frontend config (`scaffold.config.ts` in `packages/nextjs/`)
1061
1054
1062
-
**#### Configuration of Third-Party Services for Production-Grade Apps.**
1055
+
#### Configuration of Third-Party Services for Production-Grade Apps.
1063
1056
1064
1057
By default, π Scaffold-ETH 2 provides predefined API keys for popular services such as Alchemy and Etherscan. This allows you to begin developing and testing your applications more easily, avoiding the need to register for these services.
0 commit comments