Skip to content

Commit

Permalink
[streamr] added customizable symbol to strategy (snapshot-labs#1537)
Browse files Browse the repository at this point in the history
  • Loading branch information
jtakalai authored Jul 20, 2024
1 parent ecf77ad commit 1ee51d7
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/strategies/streamr/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,13 @@ Operators are the node running "miners" in the Streamr Network. They run Streamr

This is why part of the Operators' DATA tokens are staked in Sponsorships (through an Operator contract that they control). Only a small portion of DATA is expected to be in the Streamr Network participants' wallets, the rest is staked or delegated into the Streamr Network.

'''The point of the Streamr snapshot strategy''' is to allocate voting power not only according to DATA token holding (as in the plain erc-20-balance-of strategy), but also counting in the DATA tokens the token holders control via staking and delegation (NOTE: at first, only implemented for stakers. Counting delegated DATA may be added later).
The point of the Streamr snapshot strategy is to allocate voting power not only according to DATA token holding (as in the plain erc-20-balance-of strategy), but also counting in the DATA tokens the token holders control via staking and delegation.

## Parameters

```json
{
"symbol": "DATA (operator)",
"tokenAddress": "0x3a9A81d576d83FF21f26f325066054540720fC34",
"operatorFactoryAddress": "0x935734e66729b69260543Cf6e5EfeB42AC962183"
}
Expand Down
1 change: 1 addition & 0 deletions src/strategies/streamr/examples.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
"strategy": {
"name": "streamr",
"params": {
"symbol": "DATA (operator)",
"tokenAddress": "0x3a9A81d576d83FF21f26f325066054540720fC34",
"operatorFactoryAddress": "0x935734e66729b69260543Cf6e5EfeB42AC962183"
}
Expand Down
6 changes: 6 additions & 0 deletions src/strategies/streamr/schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,12 @@
"title": "Strategy",
"type": "object",
"properties": {
"symbol": {
"type": "string",
"title": "Symbol",
"examples": ["e.g. DATA (operator)"],
"maxLength": 16
},
"tokenAddress": {
"type": "string",
"title": "DATA token address",
Expand Down

0 comments on commit 1ee51d7

Please sign in to comment.