Skip to content

Commit

Permalink
Rewards update (#1192)
Browse files Browse the repository at this point in the history
* Update text
- Optimism to Solana
- wstETH to USDs
- aWSTETH to Kamino USDs

* Change browser title from OP Rewards Dashboard to USDs Rewards Dashboard

* Change OP units to USDs

* Remove eWSETH field

* Update overview api. TODO: Replace estimated rewards with proper field when implemented

* Update usersummary api

* Replace web3modal with reown appkit

* Remove @web3inbox

* Remove @reown/appkit-adapter-wagmi

* Remove web3modal

* Remove ensName truncate

* Remove viem and wagmi

* @TanStack react query update

* Text updates

* Use net_usds_supply_in_kamino for kamino usds balance

* Use bridged_usds instead of effective_bridged_usds

* Change balance to usd effective_usds_balance instead of usds_balance

* Change Total Projected Rewards to Weekly Rewards Pool

* Add Est hourly rewads

* Update text and link to weekly rewards

* Change to kamino held

* Change to usds bridged

* USDSBalance

* Fix Header text and link

* Remove old subtext

* Update formatNumber to use commas

* Remove trailing zeroes

* Fix formatInteger

* formatInteger, always show to 2 decimal places

* Remove logs

* Remove est hourly rewards

* Change Bottom Link href to wormhole.foundation blog

* Include wagmi

* EN po update

* Change wac url in build

* Improve wac url implementation

---------

Co-authored-by: Henry Han <[email protected]>
  • Loading branch information
yuli-ferna and HnryHan authored Nov 26, 2024
1 parent a5b2406 commit 6a6acb7
Show file tree
Hide file tree
Showing 14 changed files with 6,438 additions and 2,214 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ on:
app-domain:
type: string
default: "portalbridge.com"
wac-url:
wac-url-template:
type: string
default: "https://wac.staging.gfx.town"
project-branch:
Expand Down Expand Up @@ -155,7 +155,7 @@ jobs:
- name: Build Rewards Dashboard
env:
PUBLIC_URL: ${{ inputs.public-url }}
VITE_WAC_URL: ${{ inputs.wac-url }}
VITE_WAC_URL_TEMPLATE: ${{ inputs.wac-url-template }}
VITE_APP_WALLET_CONNECT_PROJECT_ID: ${{ secrets.REACT_APP_WALLET_CONNECT_PROJECT_ID }}
VITE_APP_DOMAIN: ${{ inputs.app-domain }}
run: |
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/preview.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:
advanced-tools-branch: advanced-tools
environment: Cloudflare-Preview
public-url: "/${{ needs.branch-sha.outputs.value }}"
wac-url: "https://wac.gfx.xyz"
wac-url-template: "https://allez-xyz--usds-*.modal.run"
project-branch: ${{ github.event.pull_request.head.ref }}
app-domain: preview.portalbridge.com
secrets: inherit
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/production.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,6 @@ jobs:
environment: ${{inputs.environment}}
project-branch: main
public-url: ''
wac-url: "https://wac.gfx.xyz"
wac-url-template: "https://allez-xyz--usds-*.modal.run"
app-domain: portalbridge.com
secrets: inherit
4 changes: 4 additions & 0 deletions apps/rewards-dashboard/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,7 @@ generate lingui:
```
npm run lingui:extract
```

## VITE_WAC_URL_TEMPLATE configuration

Take in account the ENV variable `VITE_WAC_URL_TEMPLATE` is a template of the WAC URL, if you want any part of the URL to be custom, add the symbol `*` (for example: `https://xlabs-*.xyz`), and then use this function `getWACUrl(custom)`, where `custom` is the string that will replace `*`.
2 changes: 1 addition & 1 deletion apps/rewards-dashboard/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>OP Rewards Dashboard</title>
<title>USDS Rewards Dashboard</title>
<link
href="https://fonts.googleapis.com/css2?family=Poppins:wght@200;300;400;500;600;700&display=swap"
rel="stylesheet"
Expand Down
Loading

0 comments on commit 6a6acb7

Please sign in to comment.