Hyperbolic monetary policy for llama lending based on secondary monetary policy.
Tool to print charts for interest rate models: https://github.com/martinkrung/interest-rate-models
python -m venv .venv
source .venv/bin/activate
source .env
pip install --upgrade pip
pip install eth-ape'[recommended-plugins]'
pip install titanoboa==0.1.10
ape plugins install arbitrum
make test
Init tx OneWayLendingFactoryL2: https://arbiscan.io/tx/0x92824e2ec70d3b1771b4c4acee9a42e2ccf3c4cdc1e28eb3439b4e89fc12fd55
-----Decoded View--------------- Arg [0] : stablecoin (address): 0x498Bf2B1e120FeD3ad3D42EA2165E9b73f99C1e5 Arg [1] : amm (address): 0xaA2377F39419F8f4CB98885076c41fE547C65a6A Arg [2] : controller (address): 0xd5DCcBf65f0BC66934e1B2a7e515A35535f91B97 Arg [3] : vault (address): 0x104e15102E4Cf33e0e2cB7C304D406B523B04d7a Arg [4] : pool_price_oracle (address): 0x57390a776A2312eF8BFc25e8624483303Dd8DfF8 Arg [5] : monetary_policy (address): 0x0b3536245faDABCF091778C4289caEbDc2c8f5C1 Arg [6] : gauge_factory (address): 0xabC000d88f23Bb45525E447528DBF656A9D55bf5 Arg [7] : admin (address): 0x452030a5D962d37D97A9D65487663cD5fd9C2B32
-----Encoded View--------------- 8 Constructor Arguments found : Arg [0] : 000000000000000000000000498bf2b1e120fed3ad3d42ea2165e9b73f99c1e5 Arg [1] : 000000000000000000000000aa2377f39419f8f4cb98885076c41fe547c65a6a Arg [2] : 000000000000000000000000d5dccbf65f0bc66934e1b2a7e515a35535f91b97 Arg [3] : 000000000000000000000000104e15102e4cf33e0e2cb7c304d406b523b04d7a Arg [4] : 00000000000000000000000057390a776a2312ef8bfc25e8624483303dd8dff8 Arg [5] : 0000000000000000000000000b3536245fadabcf091778c4289caebdc2c8f5c1 Arg [6] : 000000000000000000000000abc000d88f23bb45525e447528dbf656a9d55bf5 Arg [7] : 000000000000000000000000452030a5d962d37d97a9d65487663cd5fd9c2b32
Function: create(address borrowed_token,address collateral_token,uint256 A,uint256 fee,uint256 loan_discount,uint256 liquidation_discount,address price_oracle,string name,uint256 min_borrow_rate,uint256 max_borrow_rate)
MethodID: 0x5673683f [0]: 000000000000000000000000498bf2b1e120fed3ad3d42ea2165e9b73f99c1e5 [1]: 0000000000000000000000006c84a8f1c29108f47a79964b5fe888d4f4d0de40 [2]: 000000000000000000000000000000000000000000000000000000000000004b [3]: 000000000000000000000000000000000000000000000000001550f7dca70000 [4]: 000000000000000000000000000000000000000000000000010a741a46278000 [5]: 000000000000000000000000000000000000000000000000009fdf42f6e48000 [6]: 000000000000000000000000610d8284c0a8b5ecde7aaf36092b9ac6c31477c9 [7]: 0000000000000000000000000000000000000000000000000000000000000140 [8]: 00000000000000000000000000000000000000000000000000000000097343e0 [9]: 00000000000000000000000000000000000000000000000000000001d88341bb [10]: 000000000000000000000000000000000000000000000000000000000000000a [11]: 744254432d6c6f6e673200000000000000000000000000000000000000000000
0 borrowed_token address 0x498Bf2B1e120FeD3ad3D42EA2165E9b73f99C1e5 1 collateral_token address 0x6c84a8f1c29108F47a79964b5Fe888D4f4D0dE40 2 A uint256 75 3 fee uint256 6000000000000000 4 loan_discount uint256 75000000000000000 5 liquidation_discount uint256 45000000000000000 6 price_oracle address 0x610D8284c0A8B5ecDe7Aaf36092B9Ac6c31477C9 7 name string tBTC-long2 8 min_borrow_rate uint256 158548960 9 max_borrow_rate uint256 7927447995