0 txs
99 calls
constructor
No constructor.
functions
calculateDepositBonus
purefunction calculateDepositBonus(uint256 amount, uint256 capacity, uint256 optimalCapacity, uint256 optimalBonusRate, uint256 maxDepositBonusRate, uint256 targetCapacity) pure returns (uint256 bonus)
calculateWithdrawalFee
purefunction calculateWithdrawalFee(uint256 amount, uint256 capacity, uint256 optimalCapacity, uint256 optimaFeeRate, uint256 maxFlashWithdrawalFeeRate, uint256 targetCapacity) pure returns (uint256 fee)
events
No events.
errors
No errors.
creation bytecode
0x61045161003a600b82828239805160001a60731461002d57634e487b7160e01b600052600060045260246000fd5b30600052607381538281f3fe73000000000000000000000000000000000000000030146080604052600436106100405760003560e01c8063cfe6424414610045578063fea65f721461006a575b600080fd5b610058610053366004610344565b61007d565b60405190815260200160405180910390f35b610058610078366004610344565b6101e5565b6000808711801561008d57508486115b1561010557868561009e828961039d565b10156100b1576100ae868861039d565b90505b6402540be4006100c186836103b6565b6100cb91906103cd565b6100d590836103ef565b91506100e1818961039d565b97506100ed818861039d565b9650816000036101035761010082610402565b91505b505b86156101c75760008261012087670de0b6b3a76400006103b6565b61012a91906103cd565b610134868661039d565b61014690670de0b6b3a76400006103b6565b61015091906103cd565b905060008361016060028b6103cd565b61016a908a61039d565b61017490846103b6565b61017e91906103cd565b610188908661039d565b90506402540be40061019a828b6103b6565b6101a491906103cd565b6101ae90846103ef565b9250826000036101c4576101c183610402565b92505b50505b806000036101db576101d881610402565b90505b9695505050505050565b600080871180156101f557508486105b156102da578661020581886103ef565b86101561021957610216878761039d565b90505b60008361022e88670de0b6b3a76400006103b6565b61023891906103cd565b610242878761039d565b61025490670de0b6b3a76400006103b6565b61025e91906103cd565b905060008461026e6002856103cd565b610278908b6103ef565b61028290846103b6565b61028c91906103cd565b610296908761039d565b90506102a2838a6103ef565b98506402540be4006102b482856103b6565b6102be91906103cd565b6102c890856103ef565b93506102d4838b61039d565b99505050505b6000871180156102ea5750818611155b156101db5760006102fb88886103ef565b83116103105761030b878461039d565b610312565b875b90506402540be40061032486836103b6565b61032e91906103cd565b61033890836103ef565b98975050505050505050565b60008060008060008060c0878903121561035d57600080fd5b505084359660208601359650604086013595606081013595506080810135945060a0013592509050565b634e487b7160e01b600052601160045260246000fd5b818103818111156103b0576103b0610387565b92915050565b80820281158282048414176103b0576103b0610387565b6000826103ea57634e487b7160e01b600052601260045260246000fd5b500490565b808201808211156103b0576103b0610387565b60006001820161041457610414610387565b506001019056fea26469706673582212204bb4942064c62aa0d099e5f8dc56d771ae5927c5e111a37d7bb1b02187aa947664736f6c63430008180033