What you can do
| stake-frxusd | Stake frxUSD for sfrxUSD | Ethereum: approve the Hop (0x99b5587ab54a49e3f827d10175caf69c0187bfa8) for the frxUSD amount, read the fee with quote(frxUSDLockbox, bytes32 receiver, amount), then mintRedeem(frxUSDLockbox, amount) with the nativeFee as msg.value. Fraxtal: approve 0xBFc4D34Db83553725eC6c768da71D2D9c1456B55 and call deposit(amount, receiver). |
| unstake-sfrxusd | Unstake sfrxUSD back to frxUSD | Ethereum: approve the Hop for sfrxUSD, then quote and mintRedeem(sfrxUSDLockbox, amount) with the fee as msg.value. Fraxtal: approve 0xBFc4D34Db83553725eC6c768da71D2D9c1456B55 and call redeem(shares, receiver, owner). |
| stake-frxeth | Stake frxETH for sfrxETH on Ethereum | approve sfrxETH (0xac3E018457B222d93114458476f3E3416Abbe38F) for the frxETH amount, then deposit(assets, receiver). |
| mint-frxeth | Mint frxETH from ETH | call FraxEtherMinter V2 mintFrxEth() with ETH as msg.value (or submitAndDeposit(receiver) to get sfrxETH in one step). |
| redeem-frxeth-for-eth | Redeem frxETH for ETH through the queue | approve the FraxEtherRedemptionQueue V2 for the frxETH amount, call enterRedemptionQueue(recipient, amount) to get a ticket NFT, wait until nftInformation shows it is redeemable, then fullRedeemNft(nftId, recipient). |
| check-yield | Read the sfrxUSD and sfrxETH value per share | convertToAssets(1e18) on sfrxUSD (0xcf62F905562626CfcDD2261162a51fd02Fc9c5b6) or sfrxETH (0xac3E018457B222d93114458476f3E3416Abbe38F) gives the underlying value of one share. |
Redeeming frxETH for ETH through the queue takes time. The wait depends on the validator exit queue, and a ticket can only be claimed after it matures.
If the redemption queue lacks ETH, earlier tickets are paid first and later tickets wait. Check ethShortageOrSurplus before relying on a fast exit.
Staking frxUSD on Ethereum needs a LayerZero fee paid in ETH and uses lockbox contracts. A failed or delayed cross-chain message can leave funds in flight.
frxUSD is backed by tokenized U.S. Treasury funds held by custodians, so its peg depends on redemption and reserve operations outside the chain.
Contracts
Read any function, or build a write and sign it. Amounts are in base units (1 USDC = 1000000).frxUSD tokentoken on ethereum0xCAcd6fd266aF91b8AeD52aCCc382b4e165586E29
write approve(address,uint256)
Approve a spender for an frxUSD amount in its smallest unit (18 decimals). Approve the Hop contract before staking frxUSD on Ethereum.
read balanceOf(address)
frxUSD balance of an address, 18 decimals.
read allowance(address,address)
Remaining frxUSD a spender may pull from an owner.
write transfer(address,uint256)
Send frxUSD. Amount in wei (18 decimals).
sfrxUSD token (savings vault)vault on ethereum0xcf62F905562626CfcDD2261162a51fd02Fc9c5b6
read convertToAssets(uint256)
How much frxUSD a given amount of sfrxUSD shares is worth now. Argument: shares in wei. Share value rises as yield accrues.
read previewRedeem(uint256)
frxUSD an unstake of the given sfrxUSD amount would return now.
read totalAssets()
Total frxUSD held by the vault backing sfrxUSD.
MintRedeemHop (Ethereum stake and unstake)bridge on ethereum0x99B5587ab54A49e3F827D10175Caf69C0187bfA8
read quote(address,bytes32,uint256)
LayerZero fee for a stake or unstake. Arguments: _oft is the lockbox for the direction (frxUSD lockbox to stake, sfrxUSD lockbox to unstake), _to is the receiver as bytes32 (left-padded address), _amountLD is the amount in wei. Returns a MessagingFee struct with nativeFee and lzTokenFee. Send nativeFee as msg.value to mintRedeem.
write mintRedeem(address,uint256)
Stake frxUSD for sfrxUSD, or unstake sfrxUSD back to frxUSD, on Ethereum. Arguments: _oft (the frxUSD lockbox 0x566a6442a5a6e9895b9dca97cc7879d632c6e4b0 to stake, or the sfrxUSD lockbox 0x7311cea93ccf5f4f7b789ee31eba5d9b9290e126 to unstake) and _amountLD in wei. Approve the Hop for frxUSD or sfrxUSD first. Send the nativeFee from quote as msg.value.
frxUSD token (Fraxtal)token on fraxtal0xFc00000000000000000000000000000000000001
write approve(address,uint256)
Approve the Fraxtal stake contract for an frxUSD amount before deposit.
read balanceOf(address)
frxUSD balance of an address on Fraxtal, 18 decimals.
frxUSD stake and unstake contract (Fraxtal)staking on fraxtal0xBFc4D34Db83553725eC6c768da71D2D9c1456B55
write deposit(uint256,address)
Stake frxUSD for sfrxUSD on Fraxtal. Arguments: assets in wei and receiver. Approve this contract for the frxUSD amount first. Returns the sfrxUSD shares minted.
write redeem(uint256,address,address)
Unstake sfrxUSD back to frxUSD on Fraxtal. Arguments: shares in wei, receiver, and owner (the caller's address). Approve this contract for the sfrxUSD amount first. Returns the frxUSD assets received.
read previewDeposit(uint256)
sfrxUSD shares a deposit of the given frxUSD amount would mint now.
read previewRedeem(uint256)
frxUSD an unstake of the given sfrxUSD shares would return now.
read convertToAssets(uint256)
frxUSD value of the given sfrxUSD shares now.
sfrxUSD token (Fraxtal)token on fraxtal0xfc00000000000000000000000000000000000008
read balanceOf(address)
sfrxUSD balance of an address on Fraxtal, 18 decimals.
write approve(address,uint256)
Approve the Fraxtal stake contract for an sfrxUSD amount before unstaking.
frxETH tokentoken on ethereum0x5E8422345238F34275888049021821E8E08CAa1f
write approve(address,uint256)
Approve a spender for a frxETH amount in wei. Approve sfrxETH before depositing frxETH into it, and the redemption queue before entering it.
read balanceOf(address)
frxETH balance of an address, 18 decimals.
read allowance(address,address)
Remaining frxETH a spender may pull from an owner.
write transfer(address,uint256)
Send frxETH. Amount in wei.
sfrxETH token (savings vault)vault on ethereum0xac3E018457B222d93114458476f3E3416Abbe38F
write deposit(uint256,address)
Stake frxETH for sfrxETH. Arguments: assets (frxETH in wei) and receiver. Approve this contract for the frxETH amount first. Returns the sfrxETH shares minted.
write redeem(uint256,address,address)
Unstake sfrxETH back to frxETH. Arguments: shares in wei, receiver, and owner (the caller's address). Returns the frxETH assets. This does not give ETH; to get ETH, send the frxETH to the redemption queue.
read previewDeposit(uint256)
sfrxETH shares a deposit of the given frxETH amount would mint now.
read previewRedeem(uint256)
frxETH an unstake of the given sfrxETH shares would return now.
read convertToAssets(uint256)
frxETH value of the given sfrxETH shares now. The value rises as staking yield accrues.
FraxEtherMinter V2other on ethereum0x7Bc6bad540453360F744666D625fec0ee1320cA3
write mintFrxEth()
Send ETH as msg.value and receive frxETH to the sender. Fails while mintFrxEthPaused() is true.
write mintFrxEthAndGive(address)
Same as mintFrxEth, but the frxETH goes to the recipient given as the argument.
write submitAndDeposit(address)
Send ETH as msg.value and receive sfrxETH directly. Argument: recipient. Converts the ETH to frxETH and stakes it in one step.
read mintFrxEthPaused()
True when minting frxETH is paused.
FraxEtherRedemptionQueue V2exchange on ethereum0xfDC69e6BE352BD5644C438302DE4E311AAD5565b
write enterRedemptionQueue(address,uint120)
Redeem frxETH for ETH through the queue. Arguments: recipient and amount of frxETH in wei. Approve the queue for the amount first. You receive a redemption ticket NFT. ETH is paid after a waiting period that depends on the validator exit queue.
write enterRedemptionQueueViaSfrxEth(address,uint120)
Same as enterRedemptionQueue, but you pay in sfrxETH shares. Arguments: recipient and sfrxETH amount in wei. Approve the queue for sfrxETH first.
write fullRedeemNft(uint256,address)
Claim all the ETH for a matured redemption ticket NFT. Arguments: nft id and recipient. Reverts if the NFT is not mature or the queue lacks ETH for it.
write partialRedeemNft(uint256,address,uint120)
Claim part of a matured ticket's ETH. Arguments: nft id, recipient, and amount in wei.
read nftInformation(uint256)
Details of a redemption ticket NFT (five values, including a status flag, timing and amounts). Use it to check whether the ticket can be claimed yet.
read ethShortageOrSurplus()
Signed value comparing the queue's ETH with the outstanding tickets. A negative value means the queue is short of ETH.
read redemptionQueueState()
Current state of the redemption queue (five values, including timing settings that affect the waiting period).
frxETH token (Fraxtal)token on fraxtal0xFC00000000000000000000000000000000000006
read balanceOf(address)
frxETH balance of an address on Fraxtal, 18 decimals.
write approve(address,uint256)
Approve a spender for a frxETH amount on Fraxtal.
sfrxETH token (Fraxtal)token on fraxtal0xFC00000000000000000000000000000000000005
read balanceOf(address)
sfrxETH balance of an address on Fraxtal, 18 decimals.
write approve(address,uint256)
Approve a spender for an sfrxETH amount on Fraxtal.