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
{{ message }}
This repository was archived by the owner on Mar 11, 2025. It is now read-only.
* Fix typographical error in document: add missing 'with' in 'put you in touch with the corresponding teams'
* Fixed date format error and spelling mistake: 1. Corrected invalid date format from '2022-90-17' to '2022-09-17' under 'DAO Wallet' section. 2. Changed 'singer' to 'signer' in the 'Signing transactions: Use the DAO Wallet' section.
* Fix typo: change 'singer' to 'signer'
* Fix grammatical and stylistic errors in documentation
* Correct spelling errors: 'Milwaulkee' to 'Milwaukee' and 'combanatorics' to 'combinatorics'
* Fix typographical error in documentation link
* Correct typo: change 'procedureal' to 'procedural' in #[spl_program_error] section
* Fix typo in Motivation section: change 'challeneges' to 'challenges'
* Fix typographical error in 'Motivation' section
Correct the misspelling of 'interpret' in the 'Motivation' section.
* wrong usage of variable 'other_value1' instead of 'other_value2' in the tutorial code
* Fix grammatical error: 'The class authority of will therefore hold the right to add a Twitter handle name.' should be 'The class authority will therefore hold the right to add a Twitter handle name.'
Copy file name to clipboardExpand all lines: account-compression/sdk/README.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,7 +1,7 @@
1
1
# `@solana/spl-account-compression`
2
2
3
3
A TypeScript library for interacting with SPL Account Compression and SPL NoOp.
4
-
For more information, see the full [Solana account compression SDK doumentation](https://solana-labs.github.io/solana-program-library/account-compression/sdk/).
4
+
For more information, see the full [Solana account compression SDK documentation](https://solana-labs.github.io/solana-program-library/account-compression/sdk/).
Copy file name to clipboardExpand all lines: binary-option/README.md
+5-5Lines changed: 5 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,10 +1,10 @@
1
1
# Binary Option
2
2
3
-
This protocol is a primitive version of a binary options. Participants can enter a long or short position depending on their conviction. (These sides are set completely arbitrarily). The eventual goal is to have a higher level program manage the pool and handle settlements with an oracle based voting approach. Every bet in the pool involves 2 parties (1 long and 1 short) each depositing some collateral. Because bets are made on binary event, the sum of collateral will be equal to a multiple of some power of 10 (`10 ** N` where `N` is configurable).
3
+
This protocol is a primitive version of binary options. Participants can enter a long or short position depending on their conviction. (These sides are set completely arbitrarily). The eventual goal is to have a higher level program manage the pool and handle settlements with an oracle based voting approach. Every bet in the pool involves 2 parties (1 long and 1 short) each depositing some collateral. Because bets are made on a binary event, the sum of collateral will be equal to a multiple of some power of 10 (`10 ** N` where `N` is configurable).
4
4
5
-
The module contains the Rust implementation of protocol as well as a Python client and test suite.
5
+
The module contains the Rust implementation of the protocol as well as a Python client and test suite.
6
6
7
-
Suppose we had a binary option on the winner of the 2021 NBA Finals (Phoenix Suns vs. Milwaulkee Bucks). At the time of writing this (July 9th, 2021), the moneyline spread is -190 Suns +170 Bucks. This backs out an implied probability of approximately 36% that the Bucks win the championship. Suppose our binary option was on the Bucks winning this series, and that it is denominated by some wrapped stablecoin WUSD (dollar pegged) where every contract settled to 10000 WUSD (`N = 4` corresponding to 1 cent granularity). You observe that someone is willing to go short Bucks for 10 contracts at 3000 WUSD (less than the estimated probability of 36%). You can take on the opposite trade by buying 10 long contracts on the Bucks for 3000.
7
+
Suppose we had a binary option on the winner of the 2021 NBA Finals (Phoenix Suns vs. Milwaukee Bucks). At the time of writing this (July 9th, 2021), the moneyline spread is -190 Suns +170 Bucks. This backs out an implied probability of approximately 36% that the Bucks win the championship. Suppose our binary option was on the Bucks winning this series, and that it is denominated by some wrapped stablecoin WUSD (dollar pegged) where every contract settled to 10000 WUSD (`N = 4` corresponding to 1 cent granularity). You observe that someone is willing to go short Bucks for 10 contracts at 3000 WUSD (less than the estimated probability of 36%). You can take on the opposite trade by buying 10 long contracts on the Bucks for 3000.
8
8
9
9
This invokes a `Trade` instruction with size 10, buy_price 3000, and sell_price 7000. Note that these prices must sum to 10000. As part of the protocol, you transfer 30000 WUSD into the binary option and the counterparty deposits 70000 (assuming that both parties start with 0 position). In return, 10 long tokens (minted by the contract) are added to your account, and 10 short tokens are minted to your counterparty's account.
10
10
@@ -20,7 +20,7 @@ contains information about program audits.
20
20
## Client Setup
21
21
First, clone down the repository (TODO publish to PyPI)
22
22
23
-
Create a virtual environment and and install the dependencies in `client/requirements.txt`
23
+
Create a virtual environment and install the dependencies in `client/requirements.txt`
24
24
25
25
```
26
26
python3 -m virtualenv venv
@@ -47,7 +47,7 @@ python -m client.test
47
47
48
48
`n_s` the number of long contracts owned by the seller
49
49
50
-
We know from our college combanatorics/discrete math class that there are 3! = 6 ways to order 3 items. Let's list out all configurations of how these numbers can bet ordered from largest to smallest (assuming all distinct):
50
+
We know from our college combinatorics/discrete math class that there are 3! = 6 ways to order 3 items. Let's list out all configurations of how these numbers can bet ordered from largest to smallest (assuming all distinct):
Copy file name to clipboardExpand all lines: governance/NOTES.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -16,11 +16,11 @@ A DAO wallet is 1) PDA with no data, 2) derived from its governance account and
16
16
17
17
If the intention is to manage a program, you should use the DAO wallet as the admin auth in your program
18
18
19
-
*Note: as of 2022-90-17 the UI is not up-to-date and it is sill allowing users to create the deprecated asset specific governances.*
19
+
*Note: as of 2022-09-17 the UI is not up-to-date and it is sill allowing users to create the deprecated asset specific governances.*
20
20
21
21
### Signing transactions: Use the DAO Wallet
22
22
23
-
Right now both PDAs (DAO Wallet and governance account) can sign Txs. However some protocols assume the singer is also a payer or beneficiary and then only the DAO wallet can be used. For that reason it’s always better to use the DAO wallet as the authority because it behaves like any other wallet and works for all scenarios. The objective is to standardize on DAO Wallet as signer to eliminate confusion.
23
+
Right now both PDAs (DAO Wallet and governance account) can sign Txs. However some protocols assume the signer is also a payer or beneficiary and then only the DAO wallet can be used. For that reason it’s always better to use the DAO wallet as the authority because it behaves like any other wallet and works for all scenarios. The objective is to standardize on DAO Wallet as signer to eliminate confusion.
0 commit comments