forked from snapshot-labs/snapshot-strategies
-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Getting us syncd with head repo #3
Open
idiom-bytes
wants to merge
680
commits into
oceanprotocol:feature/v4-strategy
Choose a base branch
from
snapshot-labs:master
base: feature/v4-strategy
Could not load branches
Branch not found: {{ refName }}
Could not load tags
Nothing to show
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Getting us syncd with head repo #3
idiom-bytes
wants to merge
680
commits into
oceanprotocol:feature/v4-strategy
from
snapshot-labs:master
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
…1207) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: ChaituVR <[email protected]>
* [balancer] Paginate subgraph request to balancer * Reduce pagination size to make sure we get first 1000 * revert tests
* [uniswap] Fix pagination to subgraph * Fix tests * Revert test file
…1215) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
…1217) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
…ing power for SFUND holders, stakers and farmers (#1196) * feat: check SFUND balance and new staking for 270d * feat: calculate SFUND for a user farming LP * refactor: addresses in json instead TS file * refactor: rename getStakedBalance to getBalanceOf * feat: calculate SFUND from legacy farming contract * refactor: re-order calls * feat: calculate SFUND from staking contract * feat: legacy staking calculation * feat: calculate SNFTS from LP staked in farming * fix: update variables after multicall result * fix: calculate SFUND in SNFTS_SFUND pool * docs: update README * refactor: provide staking addresses in array * refactor: generic function for multicall * docs: update README * docs: update comments * chore: add schema.json * refactor: rename strategy * fix: schema.json properties issues * refactor: create utils.ts * refactor: less than 5 calls (#2) * refactor: one multicall for all farming contract * refactor: single multical for all staking contracts * refactor: erc20 calls in single `multicall` * fix: `getStakingBalanceOf` * docs: update `examples.json` * feat: throw error when > 10 addresses in arrays * docs: update README * fix(test): make legacy farming address optional
* init * feat: readme * feat: improve to run tests * fix: version * fix: missing comma * fix: update version Co-authored-by: Chaitanya <[email protected]> * fix: update author Co-authored-by: Chaitanya <[email protected]> --------- Co-authored-by: Chaitanya <[email protected]>
…1228) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: ChaituVR <[email protected]>
…egy for Nation3 Passport holders (#1230) * Make sure we have all the ERc20 balances that we need. * I think this is more simple.... * Still not beautiful, but in testing I believe that this is simplified and covers our use cases * Update index.ts Bump version as requested! * How cooperative model might work * Strip out the ERC20 * Update src/strategies/nation3-passport-coop-with-delegations/index.ts Co-authored-by: Chaitanya <[email protected]> * Update src/strategies/nation3-passport-coop-with-delegations/index.ts Co-authored-by: Chaitanya <[email protected]> * Update src/strategies/nation3-passport-coop-with-delegations/index.ts Co-authored-by: Chaitanya <[email protected]> * Update index.ts As requested * Fix from breaking PR suggestions --------- Co-authored-by: JohnMark13 <[email protected]> Co-authored-by: Chaitanya <[email protected]>
…#1221) * added in hats protocol strategy * updted readme * Revert "updted readme" This reverts commit 8746d5d. * added in simulated project, updated README, added documentation * functional implementation before eligibility * functional but dirty * fully functional - still dirty * added support for different chains * updated readme and removed unnecessary files * removed console messages and fixed strategies/index.ts * Revert "removed console messages and fixed strategies/index.ts" This reverts commit e92e3df. * Revert "Merge branch 'master' into master" This reverts commit c48ccff, reversing changes made to 612687e. * Revert "Revert "Merge branch 'master' into master"" This reverts commit f15c406. * Revert "Revert "removed console messages and fixed strategies/index.ts"" This reverts commit 74cf341. * reverted yarn lock back to original commit and removed package-lock.json * Update yarn.lock * Update src/strategies/hats-protocol-single-vote-per-org/index.ts * Update src/strategies/hats-protocol-single-vote-per-org/index.ts * Update src/strategies/hats-protocol-single-vote-per-org/index.ts * added snapshot to subgraph requests * fixed ethers error and updated yarn lock to match snapshot-strategies main * updated yarn.lock * Update yarn.lock * Update src/strategies/hats-protocol-single-vote-per-org/index.ts --------- Co-authored-by: Chaitanya <[email protected]>
* added in hats protocol strategy * updted readme * Revert "updted readme" This reverts commit 8746d5d. * added in simulated project, updated README, added documentation * functional implementation before eligibility * functional but dirty * fully functional - still dirty * added support for different chains * updated readme and removed unnecessary files * removed console messages and fixed strategies/index.ts * Revert "removed console messages and fixed strategies/index.ts" This reverts commit e92e3df. * Revert "Merge branch 'master' into master" This reverts commit c48ccff, reversing changes made to 612687e. * Revert "Revert "Merge branch 'master' into master"" This reverts commit f15c406. * Revert "Revert "removed console messages and fixed strategies/index.ts"" This reverts commit 74cf341. * reverted yarn lock back to original commit and removed package-lock.json * Update yarn.lock * Update src/strategies/hats-protocol-single-vote-per-org/index.ts * Update src/strategies/hats-protocol-single-vote-per-org/index.ts * Update src/strategies/hats-protocol-single-vote-per-org/index.ts * added snapshot to subgraph requests * fixed ethers error and updated yarn lock to match snapshot-strategies main * updated yarn.lock * Update yarn.lock * Update src/strategies/hats-protocol-single-vote-per-org/index.ts * fixed a bug where needed to convert to hex before making subgraph call * updated versioning --------- Co-authored-by: Chaitanya <[email protected]>
Co-authored-by: ChaituVR <[email protected]>
* feat: sablier v2 total amounts strategy * feat: add sablier strategies for withdraw, streamed and deposited assets * fix: use addresses box for recipient or sender list, disallow global search * fix: withdrawable amount, aggregate senders when using proxy
refactor: put "streamed-amount-of" policy at the end refactor: reorder Sablier V2 policies
…1239) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
…1477) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
* Add whitelist weighted strategy json * Added strategy to index.ts and make tests pass with correct example
* Add createAllocationMap function * Refactor to use allocationMap for more efficient lookups instead of linear searches through the allocations json arrays * Avoid creating a new result object in each reducer iteration very expensive; use simple assignment on the existing result object instead. * Improve examples.json: Include one address with vesting vote power. Adjust blockNumber to one after both vesting pool contracts are deployed
…1482) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
…example (#1484) * update api call with new request body schema * add delegateOverride to readme and example
Co-authored-by: ChaituVR <[email protected]>
…1486) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
…1487) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
…1488) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
* staking v1 and v2 * fixing review items --------- Co-authored-by: Tobias Athenstaedt <[email protected]>
* staking balance v1 * Update src/strategies/index.ts * review item --------- Co-authored-by: Tobias Athenstaedt <[email protected]> Co-authored-by: Chaitanya <[email protected]>
…1491) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
* add garden-staker strategy * update readme * use multi-call to fetch nonces
…1493) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: ChaituVR <[email protected]>
…1495) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
* chore: update decentraland urls * fix: linting * fix: update network from example
* fix: Change subgraph URLs to upgraded ones * lint
Co-authored-by: Chaitanya <[email protected]>
* Added balance-of-with-max New strategy to cap votes at a max * Update index.ts * Update index.ts * Update index.ts --------- Co-authored-by: Chaitanya <[email protected]>
…1499) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
…1504) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
…1505) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
* added balance-of-with-max-weighted strategy * Updated balance-of-with-max Adding weight to options.
…1508) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
No description provided.