What you can do
| mint ftUSD | Turn a supported stablecoin into ftUSD. | Pick an enabled collateral (MintAndRedeem.collateralAt / collateralInfo.enabled). q = previewMint(collateral, amount); approve MintAndRedeem for amount; MintAndRedeem.mint(collateral, amount, deadline, q * 0.995). |
| redeem ftUSD | Turn ftUSD back into a stablecoin. | q = previewRedeem(collateral, ftUSDAmount); approve MintAndRedeem for ftUSD; MintAndRedeem.redeem(collateral, ftUSDAmount, deadline, q * 0.995). If the returned queueId != 0, wait for CircuitBreakerV2.isSettled(queueId) (~6 h) and call executeQueued(queueId). |
| stake ftUSD for FT rewards (sftUSD) | Earn FT on staked ftUSD. | approve sftUSD vault for ftUSD; sftUSD.deposit(amount, you). Read previewClaimable(you) and claim(you) to collect FT. Exit with withdrawWithQueueId(amount, you, you). |
| stake ftUSD auto-compounding (ssftUSD, Ethereum) | Earn ftUSD-denominated yield that compounds into the share price. | approve ssftUSD vault; ssftUSD.deposit(amount, you); exit with redeem(shares, you, you). |
| exit a Perpetual PUT at par (Ethereum) | Return FT from an ftPUT position for the original collateral. | Find ids via ftPUT.tokenOfOwnerByIndex; check PutManager.maxDivestable(id, ftAmount); PutManager.divest(id, ftAmount). |
| withdraw FT from a PUT (Ethereum) | Take FT out of the PUT (gives up the par exit right on that amount). | PutManager.withdrawFT(id, ftAmount) from the NFT owner. Irreversible. |
| track a queued withdrawal | Large outflows above the circuit-breaker buffer are queued, not rejected. | CircuitBreakerV2.getQueuedByRecipient(you, 0, 50); timeUntilSettled(id); executeQueued(id) once settled (anyone can call). |
ftUSD, MintAndRedeem, sftUSD, ssftUSD and CircuitBreakerV2 are upgradeable UUPS proxies owned directly (no timelock) by the Flying Tulip 3-of-5 Safe 0x1118e1c057211306a40A4d7006C040dbfE1370Cb, whose signers are all team members (docs/risks/multisigs); it can upgrade logic, change fees and caps, and pause mint/redeem and staking deposits. The FT token owner is the same Safe. PutManager (and its upgrades/pause) is controlled by the Timelock 0x3518DB98Cb1fcB19e0c430B3E7f7F74B2A354707 with a 3-day minimum delay (getMinDelay = 259200 s at research time).
ftUSD has a blacklister and pauser: blacklisted addresses cannot transfer and the owner can wipe (wipeBlacklistedAddress) their balance; the same wipe power exists on the sftUSD/ssftUSD vaults. The FT token owner can pause FT transfers (setPaused).
Circuit breakers rate-limit outflows: ftUSD redemptions and vault exits above the buffer (per the CBv2 guide: main buffer capped at maxDrawRate x TVL, 5% replenished over 24 h in the documented defaults, plus a decaying deposit buffer) are queued for ~6 hours (CBv2). PUT exits use CBv1, where an over-capacity exit reverts and must be retried later.
ftUSD is at launch a USDC/USDT/stablecoin-to-Aave/Spark wrapper (Stage 0 per docs), so it carries Aave/Spark and stablecoin depeg risk; mint/redeem use oracle-capped price factors and small fees (e.g. ~0.07% each way for USDC on Ethereum at research time). Redemptions are blocked while MintAndRedeem is paused.
Contracts
Read any function, or build a write and sign it. Amounts are in base units (1 USDC = 1000000).FT tokentoken on ethereum0x5DD1A7A369e8273371d2DBf9d83356057088082c
read balanceOf(address)
FT balance (18 decimals).
read totalSupply()
FT supply on this chain (18 decimals). FT is a LayerZero OFT: total supply is split across chains and shrinks with burns.
write transfer(address,uint256)
Standard ERC-20 transfer (amount in wei-style 18-decimal units). Reverts while the owner has paused the token (paused()).
write approve(address,uint256)
Standard ERC-20 approval.
read paused()
true if the token owner has paused transfers (setPaused).
read quoteSend((uint32,bytes32,uint256,uint256,bytes,bytes,bytes),bool)
LayerZero OFT fee quote for a cross-chain send. SendParam = (dstEid, to as bytes32, amountLD, minAmountLD, extraOptions, composeMsg, oftCmd); second arg payInLzToken (false). Returns (nativeFee, lzTokenFee).
write send((uint32,bytes32,uint256,uint256,bytes,bytes,bytes),(uint256,uint256),address)
Bridge FT to another chain via LayerZero OFT. Args: SendParam (see quoteSend), MessagingFee (nativeFee, lzTokenFee) from quoteSend, refundAddress. Send nativeFee as msg.value. Only send to chains where peers(dstEid) is set.
ftUSD (Flying Tulip USD)token on ethereum0xF7D85EC4E7710f71992752eac2111312e73E9C9C
read balanceOf(address)
ftUSD balance (6 decimals). ftUSD itself earns no yield; stake it in sftUSD/ssftUSD for yield.
read totalSupply()
ftUSD supply on this chain (6 decimals).
write transfer(address,uint256)
ERC-20 transfer (6 decimals). Reverts if paused or if sender/recipient is blacklisted.
write approve(address,uint256)
ERC-20 approval; approve MintAndRedeem before redeem, or the sftUSD/ssftUSD vault before staking.
write permit(address,address,uint256,uint256,uint8,bytes32,bytes32)
EIP-2612 permit (owner, spender, value, deadline, v, r, s).
read isBlacklisted(address)
true if the address is blacklisted (cannot transfer; the owner can wipe its balance with wipeBlacklistedAddress).
read paused()
true if the pauser has halted transfers.
MintAndRedeem (ftUSD mint/redeem engine)exchange on ethereum0xAa48EcBC843cF7E9A29155D112b8Cb27902bD23C
read previewMint(address,uint256)
Quote: ftUSD out (6 decimals, after mint fee) for collateralAmount of collateralToken (collateral's own decimals). E.g. 1 USDC (1000000) -> 999144 ftUSD on Ethereum at research time.
read previewRedeem(address,uint256)
Quote: collateral out (collateral decimals, after redeem fee) for ftUSDAmount (6 decimals) redeemed into collateralToken.
read previewMintExact(address,uint256)
Collateral needed (collateral decimals) to mint exactly ftUSDAmount.
read previewRedeemExact(address,uint256)
ftUSD needed to receive exactly collateralAmount of collateralToken.
write mint(address,uint256,uint256,uint256)
Mint ftUSD with collateral, sent to msg.sender. Args: collateralToken, collateralAmount (collateral decimals), txDeadline (unix seconds, 0 = none), minFtUSDOut (slippage floor, 6 decimals). Approve this contract for collateralAmount of the collateral first. Reverts if paused, collateral disabled, cap reached or output < minFtUSDOut. Returns ftUSDAmount.
write mintTo(address,address,uint256,bytes32,uint256,uint256)
Same as mint but to a recipient. Args: collateralToken, to, collateralAmount, ref (bytes32 tag, 0x0 if none), txDeadline, minFtUSDOut.
write redeem(address,uint256,uint256,uint256)
Burn ftUSD for collateral sent to msg.sender. Args: collateralToken, ftUSDAmount (6 decimals), txDeadline (0 = none), minCollateralOut. Approve this contract for ftUSDAmount of ftUSD first. Returns (collateralAmount, queueId): queueId 0 = paid now; non-zero = queued in CircuitBreakerV2 (about 6 h, then executeQueued(queueId)). Blocked while paused.
write redeemTo(address,address,uint256,bytes32,uint256,uint256)
Redeem to a recipient. Args: collateralToken, to, ftUSDAmount, ref, txDeadline, minCollateralOut. Returns (collateralAmount, queueId).
read collateralCount()
Number of configured collaterals; list them with collateralAt(uint256) (returns token address).
read collateralInfo(address)
Per-collateral config: (yieldWrapper, decimals, enabled, mintFeeBps, redeemFeeBps, maxValueFtUSD cap, mintPriceHardcapWad, totalIn, totalOut, totalFtUSDBurned, totalFtUSDMinted). Check enabled before minting.
read accountedCollateralTvl()
Collateral TVL in ftUSD units (6 decimals); with minTVLForMint() gives the tvl argument for CircuitBreakerV2 views: tvl = max(accountedCollateralTvl, minTVLForMint).
read paused()
true if mint and redeem are paused.
read collateralAt(uint256)
Collateral token at index. Enabled at research time on ethereum: USDC, USDT, USDe, crvUSD, USDG.
sftUSD (staked ftUSD, EpochRewardsVault)vault on ethereum0xeb48218a4c35C814C7678cBcae88C6Ee037F7625
write deposit(uint256,address)
Stake ftUSD (6 decimals) and mint sftUSD 1:1 to receiver. Approve this vault for the ftUSD first. Reverts while paused. Returns shares.
read previewClaimable(address)
FT (18 decimals) claimable by a user from settled epochs (the open epoch is excluded).
write claim(address)
Send the caller's settled FT rewards to `to`. Returns FT paid (may be less than accrued if the vault is short of FT).
write withdrawWithQueueId(uint256,address,address)
Unstake: burn sftUSD for `assets` ftUSD (args: assets, receiver, owner). Returns (shares, queueId); queueId 0 = ftUSD sent now, non-zero = queued in CircuitBreakerV2 for about 6 h. Works even when paused.
write redeemWithQueueId(uint256,address,address)
Unstake by share amount (shares, receiver, owner). Returns (assets, queueId).
write withdraw(uint256,address,address)
ERC-4626 withdraw (assets, receiver, owner); same as withdrawWithQueueId but without returning the queue id.
read balanceOf(address)
sftUSD balance (6 decimals, 1 sftUSD = 1 ftUSD).
read maxWithdraw(address)
Max ftUSD an owner can withdraw now.
read totalAssets()
Total ftUSD staked (6 decimals).
read paused()
true if deposits are paused (withdrawals still allowed).
ssftUSD (auto-compounding staked ftUSD, StableEpochRewardsVault)vault on ethereum0x232128844e5aF56fD4B3f8BF97e08aB477282Ab5
write deposit(uint256,address)
Stake ftUSD (6 decimals) for ssftUSD shares (18 decimals) to receiver. Approve the vault for ftUSD first. Reverts while paused. Returns shares.
read previewDeposit(uint256)
ssftUSD shares (18 decimals) minted for an ftUSD amount.
read convertToAssets(uint256)
ftUSD (6 decimals) per share amount; pass 1e18 for the price of one ssftUSD. Rises as ftUSD rewards vest in.
write redeem(uint256,address,address)
Burn shares (shares, receiver, owner) for ftUSD. Returns assets. Payout goes through the yield wrapper and can be rate-limited by the circuit breaker.
write withdraw(uint256,address,address)
Withdraw an exact ftUSD amount (assets, receiver, owner). Returns shares burned.
read maxWithdraw(address)
Max ftUSD an owner can withdraw now.
read balanceOf(address)
ssftUSD shares (18 decimals).
read totalAssets()
Total ftUSD backing the vault (6 decimals); excludes still-vesting rewards (getUnvestedAmount()).
read paused()
true if the vault is paused.
PutManager (Perpetual PUT / capital allocation)other on ethereum0xbA49d0AC42f4fBA4e24A8677a22218a4dF75ebaA
write divest(uint256,uint256)
Exit at par: return amount_ft (18 decimals) of FT from ftPUT position `id` and receive the original collateral pro rata (e.g. 10,000 FT -> 1,000 USDC). Caller must own the ftPUT NFT. Collateral is pulled from the yield wrapper, whose circuit breaker (CBv1) can make large exits revert until capacity refills.
write divestUnderlying(uint256,uint256)
Same as divest but the wrapper pays out via withdrawUnderlying (the strategy's underlying asset).
write withdrawFT(uint256,uint256)
Withdraw `amount` FT from position `id` to your wallet, permanently invalidating the PUT on that part (backing collateral goes to buyback-and-burn). Requires transferable() = true and withdrawFTBlocked(id) = false. Irreversible.
read canDivest(uint256,uint256)
(id, ftAmount) -> (divestable, amount): whether that much can be exited at par right now (checks wrapper liquidity).
read maxDivestable(uint256,uint256)
(id, ftAmount) -> (divestable, amount): largest FT amount up to ftAmount that can be exited now.
read withdrawFTBlocked(uint256)
true if withdrawFT is blocked for a position.
read transferable()
true once FT withdrawals from PUTs are enabled (true on Ethereum at research time).
read saleEnabled()
true while the capital allocation sale accepts invest() (false at research time; invest also needs a whitelist Merkle proof).
read collateralFromFT(uint256,uint256,uint8,uint64)
Pure helper: collateral amount for (ftAmount, strike, tokenDecimals, ftPerUSD); read strike/ftPerUSD from ftPUT.puts(id).
read getCollateral(uint256)
Accepted collateral by index (Ethereum: USDC, WETH, USDT, USDS, USDtb, USDe).
ftPUT NFT (pFT, Perpetual PUT positions)other on ethereum0xa4215Daaf3745E14E96E169E0E7706c479Ce04F2
read balanceOf(address)
Number of ftPUT NFTs held.
read tokenOfOwnerByIndex(address,uint256)
Enumerate a holder's position ids.
read puts(uint256)
Position data: (token collateral, amount collateral, ft, ft_bought, withdrawn, burned, strike (1e8 USD price), amountRemaining, ftPerUSD (1e8)).
read divestable(uint256)
(ft, strike, token, ftPerUSD): FT still covered by the PUT and its exit terms.
read ownerOf(uint256)
Owner of a position; only the owner can divest/withdrawFT.
write safeTransferFrom(address,address,uint256)
Transfer a position (PUT right included); positions can also be sold on the ftPUT Marketplace.
CircuitBreakerV2 (ftUSD outflow rate limiter)other on ethereum0xCB210509F5AE2b3843B7Fb8Bb90bAFF9cE4f7355
read checkOutflow(address,address,uint256,uint256)
Pre-check a withdrawal: (contract, asset, amount, tvl) -> (wouldBeImmediate, availableCapacity). contract = the protected contract (MintAndRedeem or the yield wrapper), asset = limiter asset, tvl from that contract (MintAndRedeem: max(accountedCollateralTvl, minTVLForMint)). Always use these 3/4-arg forms (scoped limiters).
read withdrawalCapacity(address,address,uint256)
Max amount that would leave instantly: (contract, asset, tvl).
read getQueuedByRecipient(address,uint256,uint256)
List a user's queued outflows: (recipient, offset, limit) -> QueuedOutflow[].
read isSettled(uint256)
true once a queued outflow can be executed.
read timeUntilSettled(uint256)
Seconds until a queue entry is claimable (0 if ready).
write executeQueued(uint256)
Release a settled queued outflow to its recipient. Permissionless: anyone can call after the delay. Reverts if not yet settled, paused, or invalidated by an emergency recovery.
write executeQueuedBatch(uint256[])
Execute several settled queue entries in one transaction.
read settlementDelay()
Queue delay in seconds (21600 = 6 h on all three chains at research time; configurable 5 min to 7 days).
FT tokentoken on sonic0x5DD1A7A369e8273371d2DBf9d83356057088082c
read balanceOf(address)
FT balance (18 decimals).
read totalSupply()
FT supply on this chain (18 decimals). FT is a LayerZero OFT: total supply is split across chains and shrinks with burns.
write transfer(address,uint256)
Standard ERC-20 transfer (amount in wei-style 18-decimal units). Reverts while the owner has paused the token (paused()).
write approve(address,uint256)
Standard ERC-20 approval.
read paused()
true if the token owner has paused transfers (setPaused).
read quoteSend((uint32,bytes32,uint256,uint256,bytes,bytes,bytes),bool)
LayerZero OFT fee quote for a cross-chain send. SendParam = (dstEid, to as bytes32, amountLD, minAmountLD, extraOptions, composeMsg, oftCmd); second arg payInLzToken (false). Returns (nativeFee, lzTokenFee).
write send((uint32,bytes32,uint256,uint256,bytes,bytes,bytes),(uint256,uint256),address)
Bridge FT to another chain via LayerZero OFT. Args: SendParam (see quoteSend), MessagingFee (nativeFee, lzTokenFee) from quoteSend, refundAddress. Send nativeFee as msg.value. Only send to chains where peers(dstEid) is set.
ftUSD (Flying Tulip USD)token on sonic0xF7D85EC4E7710f71992752eac2111312e73E9C9C
read balanceOf(address)
ftUSD balance (6 decimals). ftUSD itself earns no yield; stake it in sftUSD/ssftUSD for yield.
read totalSupply()
ftUSD supply on this chain (6 decimals).
write transfer(address,uint256)
ERC-20 transfer (6 decimals). Reverts if paused or if sender/recipient is blacklisted.
write approve(address,uint256)
ERC-20 approval; approve MintAndRedeem before redeem, or the sftUSD/ssftUSD vault before staking.
write permit(address,address,uint256,uint256,uint8,bytes32,bytes32)
EIP-2612 permit (owner, spender, value, deadline, v, r, s).
read isBlacklisted(address)
true if the address is blacklisted (cannot transfer; the owner can wipe its balance with wipeBlacklistedAddress).
read paused()
true if the pauser has halted transfers.
MintAndRedeem (ftUSD mint/redeem engine)exchange on sonic0x0C6f8eC81c3eA5BFf06F6CD0791780f9f050eE31
read previewMint(address,uint256)
Quote: ftUSD out (6 decimals, after mint fee) for collateralAmount of collateralToken (collateral's own decimals). E.g. 1 USDC (1000000) -> 999144 ftUSD on Ethereum at research time.
read previewRedeem(address,uint256)
Quote: collateral out (collateral decimals, after redeem fee) for ftUSDAmount (6 decimals) redeemed into collateralToken.
read previewMintExact(address,uint256)
Collateral needed (collateral decimals) to mint exactly ftUSDAmount.
read previewRedeemExact(address,uint256)
ftUSD needed to receive exactly collateralAmount of collateralToken.
write mint(address,uint256,uint256,uint256)
Mint ftUSD with collateral, sent to msg.sender. Args: collateralToken, collateralAmount (collateral decimals), txDeadline (unix seconds, 0 = none), minFtUSDOut (slippage floor, 6 decimals). Approve this contract for collateralAmount of the collateral first. Reverts if paused, collateral disabled, cap reached or output < minFtUSDOut. Returns ftUSDAmount.
write mintTo(address,address,uint256,bytes32,uint256,uint256)
Same as mint but to a recipient. Args: collateralToken, to, collateralAmount, ref (bytes32 tag, 0x0 if none), txDeadline, minFtUSDOut.
write redeem(address,uint256,uint256,uint256)
Burn ftUSD for collateral sent to msg.sender. Args: collateralToken, ftUSDAmount (6 decimals), txDeadline (0 = none), minCollateralOut. Approve this contract for ftUSDAmount of ftUSD first. Returns (collateralAmount, queueId): queueId 0 = paid now; non-zero = queued in CircuitBreakerV2 (about 6 h, then executeQueued(queueId)). Blocked while paused.
write redeemTo(address,address,uint256,bytes32,uint256,uint256)
Redeem to a recipient. Args: collateralToken, to, ftUSDAmount, ref, txDeadline, minCollateralOut. Returns (collateralAmount, queueId).
read collateralCount()
Number of configured collaterals; list them with collateralAt(uint256) (returns token address).
read collateralInfo(address)
Per-collateral config: (yieldWrapper, decimals, enabled, mintFeeBps, redeemFeeBps, maxValueFtUSD cap, mintPriceHardcapWad, totalIn, totalOut, totalFtUSDBurned, totalFtUSDMinted). Check enabled before minting.
read accountedCollateralTvl()
Collateral TVL in ftUSD units (6 decimals); with minTVLForMint() gives the tvl argument for CircuitBreakerV2 views: tvl = max(accountedCollateralTvl, minTVLForMint).
read paused()
true if mint and redeem are paused.
read collateralAt(uint256)
Collateral token at index. Enabled at research time on sonic: USDC (0x29219dd400f2Bf60E5a23d13Be72B486D4038894) and USSD (0x000000000eCcFf26B795F73fb0A70d48da657fEf).
sftUSD (staked ftUSD, EpochRewardsVault)vault on sonic0xD1E5A86f1005F6356Bd022C587dE0f430CD2aeb1
write deposit(uint256,address)
Stake ftUSD (6 decimals) and mint sftUSD 1:1 to receiver. Approve this vault for the ftUSD first. Reverts while paused. Returns shares.
read previewClaimable(address)
FT (18 decimals) claimable by a user from settled epochs (the open epoch is excluded).
write claim(address)
Send the caller's settled FT rewards to `to`. Returns FT paid (may be less than accrued if the vault is short of FT).
write withdrawWithQueueId(uint256,address,address)
Unstake: burn sftUSD for `assets` ftUSD (args: assets, receiver, owner). Returns (shares, queueId); queueId 0 = ftUSD sent now, non-zero = queued in CircuitBreakerV2 for about 6 h. Works even when paused.
write redeemWithQueueId(uint256,address,address)
Unstake by share amount (shares, receiver, owner). Returns (assets, queueId).
write withdraw(uint256,address,address)
ERC-4626 withdraw (assets, receiver, owner); same as withdrawWithQueueId but without returning the queue id.
read balanceOf(address)
sftUSD balance (6 decimals, 1 sftUSD = 1 ftUSD).
read maxWithdraw(address)
Max ftUSD an owner can withdraw now.
read totalAssets()
Total ftUSD staked (6 decimals).
read paused()
true if deposits are paused (withdrawals still allowed).
CircuitBreakerV2 (ftUSD outflow rate limiter)other on sonic0xCB2C0168Bf3440f5f342eD685dFdFd06a4607Edc
read checkOutflow(address,address,uint256,uint256)
Pre-check a withdrawal: (contract, asset, amount, tvl) -> (wouldBeImmediate, availableCapacity). contract = the protected contract (MintAndRedeem or the yield wrapper), asset = limiter asset, tvl from that contract (MintAndRedeem: max(accountedCollateralTvl, minTVLForMint)). Always use these 3/4-arg forms (scoped limiters).
read withdrawalCapacity(address,address,uint256)
Max amount that would leave instantly: (contract, asset, tvl).
read getQueuedByRecipient(address,uint256,uint256)
List a user's queued outflows: (recipient, offset, limit) -> QueuedOutflow[].
read isSettled(uint256)
true once a queued outflow can be executed.
read timeUntilSettled(uint256)
Seconds until a queue entry is claimable (0 if ready).
write executeQueued(uint256)
Release a settled queued outflow to its recipient. Permissionless: anyone can call after the delay. Reverts if not yet settled, paused, or invalidated by an emergency recovery.
write executeQueuedBatch(uint256[])
Execute several settled queue entries in one transaction.
read settlementDelay()
Queue delay in seconds (21600 = 6 h on all three chains at research time; configurable 5 min to 7 days).
FT tokentoken on bsc0x5DD1A7A369e8273371d2DBf9d83356057088082c
read balanceOf(address)
FT balance (18 decimals).
read totalSupply()
FT supply on this chain (18 decimals). FT is a LayerZero OFT: total supply is split across chains and shrinks with burns.
write transfer(address,uint256)
Standard ERC-20 transfer (amount in wei-style 18-decimal units). Reverts while the owner has paused the token (paused()).
write approve(address,uint256)
Standard ERC-20 approval.
read paused()
true if the token owner has paused transfers (setPaused).
read quoteSend((uint32,bytes32,uint256,uint256,bytes,bytes,bytes),bool)
LayerZero OFT fee quote for a cross-chain send. SendParam = (dstEid, to as bytes32, amountLD, minAmountLD, extraOptions, composeMsg, oftCmd); second arg payInLzToken (false). Returns (nativeFee, lzTokenFee).
write send((uint32,bytes32,uint256,uint256,bytes,bytes,bytes),(uint256,uint256),address)
Bridge FT to another chain via LayerZero OFT. Args: SendParam (see quoteSend), MessagingFee (nativeFee, lzTokenFee) from quoteSend, refundAddress. Send nativeFee as msg.value. Only send to chains where peers(dstEid) is set.
ftUSD (Flying Tulip USD)token on bsc0xF7D85EC4E7710f71992752eac2111312e73E9C9C
read balanceOf(address)
ftUSD balance (6 decimals). ftUSD itself earns no yield; stake it in sftUSD/ssftUSD for yield.
read totalSupply()
ftUSD supply on this chain (6 decimals).
write transfer(address,uint256)
ERC-20 transfer (6 decimals). Reverts if paused or if sender/recipient is blacklisted.
write approve(address,uint256)
ERC-20 approval; approve MintAndRedeem before redeem, or the sftUSD/ssftUSD vault before staking.
write permit(address,address,uint256,uint256,uint8,bytes32,bytes32)
EIP-2612 permit (owner, spender, value, deadline, v, r, s).
read isBlacklisted(address)
true if the address is blacklisted (cannot transfer; the owner can wipe its balance with wipeBlacklistedAddress).
read paused()
true if the pauser has halted transfers.
MintAndRedeem (ftUSD mint/redeem engine)exchange on bsc0x7d73863178A3eCb9767F0BE1bf50F55305A52743
read previewMint(address,uint256)
Quote: ftUSD out (6 decimals, after mint fee) for collateralAmount of collateralToken (collateral's own decimals). E.g. 1 USDC (1000000) -> 999144 ftUSD on Ethereum at research time.
read previewRedeem(address,uint256)
Quote: collateral out (collateral decimals, after redeem fee) for ftUSDAmount (6 decimals) redeemed into collateralToken.
read previewMintExact(address,uint256)
Collateral needed (collateral decimals) to mint exactly ftUSDAmount.
read previewRedeemExact(address,uint256)
ftUSD needed to receive exactly collateralAmount of collateralToken.
write mint(address,uint256,uint256,uint256)
Mint ftUSD with collateral, sent to msg.sender. Args: collateralToken, collateralAmount (collateral decimals), txDeadline (unix seconds, 0 = none), minFtUSDOut (slippage floor, 6 decimals). Approve this contract for collateralAmount of the collateral first. Reverts if paused, collateral disabled, cap reached or output < minFtUSDOut. Returns ftUSDAmount.
write mintTo(address,address,uint256,bytes32,uint256,uint256)
Same as mint but to a recipient. Args: collateralToken, to, collateralAmount, ref (bytes32 tag, 0x0 if none), txDeadline, minFtUSDOut.
write redeem(address,uint256,uint256,uint256)
Burn ftUSD for collateral sent to msg.sender. Args: collateralToken, ftUSDAmount (6 decimals), txDeadline (0 = none), minCollateralOut. Approve this contract for ftUSDAmount of ftUSD first. Returns (collateralAmount, queueId): queueId 0 = paid now; non-zero = queued in CircuitBreakerV2 (about 6 h, then executeQueued(queueId)). Blocked while paused.
write redeemTo(address,address,uint256,bytes32,uint256,uint256)
Redeem to a recipient. Args: collateralToken, to, ftUSDAmount, ref, txDeadline, minCollateralOut. Returns (collateralAmount, queueId).
read collateralCount()
Number of configured collaterals; list them with collateralAt(uint256) (returns token address).
read collateralInfo(address)
Per-collateral config: (yieldWrapper, decimals, enabled, mintFeeBps, redeemFeeBps, maxValueFtUSD cap, mintPriceHardcapWad, totalIn, totalOut, totalFtUSDBurned, totalFtUSDMinted). Check enabled before minting.
read accountedCollateralTvl()
Collateral TVL in ftUSD units (6 decimals); with minTVLForMint() gives the tvl argument for CircuitBreakerV2 views: tvl = max(accountedCollateralTvl, minTVLForMint).
read paused()
true if mint and redeem are paused.
read collateralAt(uint256)
Collateral token at index. Enabled at research time on bsc: USDC (0x8AC76a51cc950d9822D68b83fE1Ad97B32Cd580d), USDT (0x55d398326f99059fF775485246999027B3197955), FDUSD (0xc5f0f7b66764F6ec8C8Dff7BA683102295E16409).
sftUSD (staked ftUSD, EpochRewardsVault)vault on bsc0xe1716796d6Bf37e4049bdb6e1150Cb713800FeEe
write deposit(uint256,address)
Stake ftUSD (6 decimals) and mint sftUSD 1:1 to receiver. Approve this vault for the ftUSD first. Reverts while paused. Returns shares.
read previewClaimable(address)
FT (18 decimals) claimable by a user from settled epochs (the open epoch is excluded).
write claim(address)
Send the caller's settled FT rewards to `to`. Returns FT paid (may be less than accrued if the vault is short of FT).
write withdrawWithQueueId(uint256,address,address)
Unstake: burn sftUSD for `assets` ftUSD (args: assets, receiver, owner). Returns (shares, queueId); queueId 0 = ftUSD sent now, non-zero = queued in CircuitBreakerV2 for about 6 h. Works even when paused.
write redeemWithQueueId(uint256,address,address)
Unstake by share amount (shares, receiver, owner). Returns (assets, queueId).
write withdraw(uint256,address,address)
ERC-4626 withdraw (assets, receiver, owner); same as withdrawWithQueueId but without returning the queue id.
read balanceOf(address)
sftUSD balance (6 decimals, 1 sftUSD = 1 ftUSD).
read maxWithdraw(address)
Max ftUSD an owner can withdraw now.
read totalAssets()
Total ftUSD staked (6 decimals).
read paused()
true if deposits are paused (withdrawals still allowed).
CircuitBreakerV2 (ftUSD outflow rate limiter)other on bsc0xCB2C0168Bf3440f5f342eD685dFdFd06a4607Edc
read checkOutflow(address,address,uint256,uint256)
Pre-check a withdrawal: (contract, asset, amount, tvl) -> (wouldBeImmediate, availableCapacity). contract = the protected contract (MintAndRedeem or the yield wrapper), asset = limiter asset, tvl from that contract (MintAndRedeem: max(accountedCollateralTvl, minTVLForMint)). Always use these 3/4-arg forms (scoped limiters).
read withdrawalCapacity(address,address,uint256)
Max amount that would leave instantly: (contract, asset, tvl).
read getQueuedByRecipient(address,uint256,uint256)
List a user's queued outflows: (recipient, offset, limit) -> QueuedOutflow[].
read isSettled(uint256)
true once a queued outflow can be executed.
read timeUntilSettled(uint256)
Seconds until a queue entry is claimable (0 if ready).
write executeQueued(uint256)
Release a settled queued outflow to its recipient. Permissionless: anyone can call after the delay. Reverts if not yet settled, paused, or invalidated by an emergency recovery.
write executeQueuedBatch(uint256[])
Execute several settled queue entries in one transaction.
read settlementDelay()
Queue delay in seconds (21600 = 6 h on all three chains at research time; configurable 5 min to 7 days).