forked from ubiquity/uusd.ubq.fi
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request ubiquity#2 from rndquu/feat/add-increase-uusd-thre…
…sholds feat: add increase UUSD thresholds helper script
- Loading branch information
Showing
2 changed files
with
20 additions
and
0 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
#!/bin/bash | ||
|
||
# constants | ||
ANVIL_RPC=http://localhost:8545 | ||
DIAMOND="0xED3084c98148e2528DaDCB53C56352e549C488fA" | ||
|
||
# may be changed depending on environment | ||
ADMIN_WALLET=0xefC0e701A824943b469a694aC564Aa1efF7Ab7dd | ||
|
||
# enable auto impersonating | ||
cast rpc --rpc-url $ANVIL_RPC anvil_autoImpersonateAccount true | ||
|
||
# owner sets (for ease of QA): | ||
# 1. `mintPriceThreshold = 0` (allows minting anytime) | ||
# 2. `redeemPriceThreshold = 100_000_000` (100$, allows redeeming when UUSD < 100$) | ||
cast send --rpc-url $ANVIL_RPC $DIAMOND --unlocked --from $ADMIN_WALLET "setPriceThresholds(uint256,uint256)" 0 100000000 | ||
|
||
# disable auto impersonating | ||
cast rpc --rpc-url $ANVIL_RPC anvil_autoImpersonateAccount false |
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