AbstractBatchController
Functions:
Events:
Graphs:
Function Definitions:
setBatchStorage()
All function with the modifer whenNotPaused
cant be called anymore. Namly deposits and mint/redeem
pause()
All function with the modifer whenNotPaused
cant be called anymore. Namly deposits and mint/redeem
unpause()
All function with the modifer whenNotPaused
cant be called anymore. Namly deposits and mint/redeem
grantClientAccess()
acceptClientAccess()
setStaking()
setSlippage()
Parameter Name | Type | Description |
---|---|---|
| uint256 | amount in bps (e.g. 50 = 0.5%) |
| uint256 | amount in bps (e.g. 50 = 0.5%) |
setProcessingThreshold()
The cooldown is the same for redeem and mint batches
Parameter Name | Type | Description |
---|---|---|
| uint256 | Cooldown in seconds |
| uint256 | Amount of MIM necessary to mint immediately |
| uint256 | Amount of 3X necessary to mint immediately |
depositForMint()
Parameter Name | Type | Description |
---|---|---|
| uint256 | Amount of DAI to use for minting |
| address | User that gets the shares attributed to (for use in zapper contract) |
depositForRedeem()
Parameter Name | Type | Description |
---|---|---|
| uint256 | amount of 3X to be redeemed |
withdrawFromBatch()
Parameter Name | Type | Description |
---|---|---|
| bytes32 | From which batch should funds be withdrawn from |
| uint256 | Amount of 3X or DAI to be withdrawn from the queue (depending on mintBatch / redeemBatch) |
| address | User that gets the shares attributed to (for use in zapper contract) |
withdrawFromBatch()
Parameter Name | Type | Description |
---|---|---|
| bytes32 | From which batch should funds be withdrawn from |
| uint256 | Amount of 3X or DAI to be withdrawn from the queue (depending on mintBatch / redeemBatch) |
| address | User that gets the shares attributed to (for use in zapper contract) |
claimAndStake()
Parameter Name | Type | Description |
---|---|---|
| bytes32 | Id of batch to claim from |
claimForAndStake()
claim()
Parameter Name | Type | Description |
---|---|---|
| bytes32 | Id of batch to claim from |
| address | User that gets the shares attributed to (for use in zapper contract) |
moveUnclaimedIntoCurrentBatch()
Since our output token is not the same as our input token we would need to swap the output token via 2 hops into out input token. If we want to do so id prefer to create a second function to do so as it would also require a slippage parameter and the swapping logic
Parameter Name | Type | Description |
---|---|---|
| bytes32[] | the ids of each batch where targetToken should be moved from |
| uint256[] | how many shares should be claimed in each of the batches |
| bool | should move token into the currentMintBatch vs currentRedeemBatch |
Events
ProcessingThresholdUpdated
SlippageUpdated
StakingUpdated
WithdrawnFromBatch
Claimed
Deposit
DepositedUnclaimedSetTokenForRedeem
Withdrawal
Graphs
Dependency Graph
Inheritance Graph
Last updated