Skip to content

Commit

Permalink
feat: frxUSD, sfrxUSD (#28)
Browse files Browse the repository at this point in the history
* feat: frxUSD, sfrxUSD

* fix: version
  • Loading branch information
pegahcarter authored Dec 18, 2024
1 parent e9b64d1 commit bb92bd5
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 16 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,8 @@
- Chain: `Mode`, `Sei`, `Fraxtal`, `X-Layer`
- Admin: `ProxyAdmin` (owned by chain-respective msig)
- OFTs
- `FRAX`: `0x80eede496655fb9047dd39d9f418d5483ed600df`
- `sFRAX`: `0x5bff88ca1442c2496f7e475e9e7786383bc070c0`
- `frxUSD`: `0x80eede496655fb9047dd39d9f418d5483ed600df`
- `sfrxUSD`: `0x5bff88ca1442c2496f7e475e9e7786383bc070c0`
- `sfrxETH`: `0x3ec3849c33291a9ef4c5db86de593eb4a37fde45`
- `FXS`: `0x64445f0aecc51e94ad52d8ac56b7190e764e561a`
- `frxETH`: `0x43eDD7f3831b08FE70B7555ddD373C8bF65a9050`
Expand Down
6 changes: 3 additions & 3 deletions scripts/BaseL0Script.sol
Original file line number Diff line number Diff line change
Expand Up @@ -77,9 +77,9 @@ contract BaseL0Script is Script {
// Deployed proxies
address public proxyAdmin;
address public fxsOft;
address public sFraxOft;
address public sfrxUsdOft;
address public sfrxEthOft;
address public fraxOft;
address public frxUsdOft;
address public frxEthOft;
address public fpiOft;
uint256 public numOfts;
Expand All @@ -98,7 +98,7 @@ contract BaseL0Script is Script {
string public json;

function version() public virtual pure returns (uint256, uint256, uint256) {
return (1, 2, 1);
return (1, 2, 2);
}

modifier broadcastAs(uint256 privateKey) {
Expand Down
22 changes: 11 additions & 11 deletions scripts/DeployFraxOFTProtocol/DeployFraxOFTProtocol.s.sol
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ contract DeployFraxOFTProtocol is BaseL0Script {
using Strings for uint256;

function version() public virtual override pure returns (uint256, uint256, uint256) {
return (1, 2, 1);
return (1, 2, 2);
}

function setUp() public virtual override {
Expand Down Expand Up @@ -145,9 +145,9 @@ contract DeployFraxOFTProtocol is BaseL0Script {
// TODO: support for non-evm addresses
// TODO: validate that differing OFT addrs does not impact assumed setup functions.
require(fxsOft == expectedProxyOfts[0], "Invalid FXS OFT");
require(sFraxOft == expectedProxyOfts[1], "Invalid sFRAX OFT");
require(sfrxUsdOft == expectedProxyOfts[1], "Invalid sFRAX OFT");
require(sfrxEthOft == expectedProxyOfts[2], "Invalid sfrxETH OFT");
require(fraxOft == expectedProxyOfts[3], "Invalid FRAX OFT");
require(frxUsdOft == expectedProxyOfts[3], "Invalid FRAX OFT");
require(frxEthOft == expectedProxyOfts[4], "Invalid frxETH OFT");
require(fpiOft == expectedProxyOfts[5], "Invalid FPI OFT");
require(proxyOfts.length == numOfts, "OFT array lengths different");
Expand All @@ -168,10 +168,10 @@ contract DeployFraxOFTProtocol is BaseL0Script {
_symbol: "FXS"
});

// Deploy sFRAX
(,sFraxOft) = deployFraxOFTUpgradeableAndProxy({
_name: "Staked Frax",
_symbol: "sFRAX"
// Deploy sfrxUSD
(,sfrxUsdOft) = deployFraxOFTUpgradeableAndProxy({
_name: "Staked Frax USD",
_symbol: "sfrxUSD"
});

// Deploy sfrxETH
Expand All @@ -180,10 +180,10 @@ contract DeployFraxOFTProtocol is BaseL0Script {
_symbol: "sfrxETH"
});

// Deploy FRAX
(,fraxOft) = deployFraxOFTUpgradeableAndProxy({
_name: "Frax",
_symbol: "FRAX"
// Deploy frxUSD
(,frxUsdOft) = deployFraxOFTUpgradeableAndProxy({
_name: "Frax USD",
_symbol: "frxUSD"
});

// Deploy frxETH
Expand Down

0 comments on commit bb92bd5

Please sign in to comment.