Skip to content
This repository has been archived by the owner on Jun 24, 2022. It is now read-only.

[CoW Subsidy] Base PR #2549

Merged
merged 8 commits into from
Mar 22, 2022
Merged

[CoW Subsidy] Base PR #2549

merged 8 commits into from
Mar 22, 2022

Conversation

W3stside
Copy link
Contributor

@W3stside W3stside commented Mar 16, 2022

Summary

Part of

CoW Subsidy modal!

image

TODO (upcoming PRs)

@W3stside W3stside requested review from a team March 16, 2022 12:18
@elena-zh
Copy link

Seems that the build has failed.

@github-actions
Copy link
Contributor

  • 🔭 GP Swap: CoW Protocol v2 Swap UI

* revert !account test check

* add cow subsidy modal type to state

* add component to swapmod

* use AutoRow
Copy link
Contributor

@anxolin anxolin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice progress! I left a bunch of comments, but is an approval. I think we should merge and keep iterating in new PRs and addressing comments

['100000', 35],
]

export const SUBSIDY_INFO_MESSAGE = 'As a (v)COW token holder you will be eligbible for a fee discount.'
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same as this, this is content. Shouldn't be in a constant imo. I know, u want to refactor some repetition. I don't think a bit of repetition in content is that bad, and if its in a constant should be in a constant in the component, not a global one

* create discount utl fn & tests

* move constants to file closer to subsidy code

* minor changes to SubsidyTable

* fix broken path

* PR comments - ease up logic and data

* [CoW Subsidy] - Highlight current subsidy relative to CoW balance and show correct discount on SwapMod (#2558)

* add selected tier styling to table

* change return of util

* pass tier (mock) to modal

* more serious hook impl.

* change type to subsidy and use hook

* fix test

* use atom units for better math

- simpler for..of loop
- format table units down

* better tests and fix logic

* type change and minor logic lean

* fix test tier with lt change

* lt inclusive in loop
@W3stside W3stside changed the base branch from develop to release/1.12.0 March 22, 2022 13:35
@W3stside W3stside merged commit 9b55468 into release/1.12.0 Mar 22, 2022
@alfetopito alfetopito deleted the cow-fee-subsidy branch March 22, 2022 22:14
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants