Skip to content

Commit

Permalink
Merge pull request #41 from AngleProtocol/feat--Pendle-swapper
Browse files Browse the repository at this point in the history
Feat--Pendle-swapper
  • Loading branch information
GuillaumeNervoXS authored Apr 26, 2024
2 parents 9af3317 + 57df49a commit 48455d7
Show file tree
Hide file tree
Showing 253 changed files with 20,361 additions and 1,675 deletions.
7 changes: 6 additions & 1 deletion .gitmodules
Original file line number Diff line number Diff line change
@@ -1,7 +1,12 @@
[submodule "lib/forge-std"]
path = lib/forge-std
url = https://github.com/foundry-rs/forge-std
[submodule "lib/utils"]
path = lib/utils
url = https://github.com/AngleProtocol/utils
[submodule "lib/morpho-blue"]
path = lib/morpho-blue
url = https://github.com/morpho-org/morpho-blue
[submodule "lib/borrow-contracts"]
path = lib/borrow-contracts
url = https://github.com/AngleProtocol/borrow-contracts
tags = v2.3
25 changes: 21 additions & 4 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,29 @@
{
"editor.defaultFormatter": "esbenp.prettier-vscode",
"[typescript]": {
"editor.defaultFormatter": "rvest.vs-code-prettier-eslint"
},
"[solidity]": {
"editor.defaultFormatter": "JuanBlanco.solidity"
},
"editor.codeActionsOnSave": {
"source.fixAll": true
}
"editor.formatOnSave": true,
"workbench.colorCustomizations": {
"diffEditor.insertedTextBackground": "#00bb0044",
"diffEditor.removedTextBackground": "#ff000044"
},
"slither.solcPath": "",
"slither.hiddenDetectors": [],
"solidity.compileUsingRemoteVersion": "v0.8.22",
"files.insertFinalNewline": true,
"solidity.remappings": [
"@chainlink/=node_modules/@chainlink/",
"@ensdomains/=node_modules/@ensdomains/",
"@openzeppelin/=node_modules/@openzeppelin/",
"@uniswap/=node_modules/@uniswap/",
"ds-test/=lib/forge-std/lib/ds-test/src/",
"forge-std/=lib/forge-std/src/",
"borrow/=lib/borrow-contracts/contracts",
"borrow-staked/=contracts/",
"utils/=lib/utils",
"morpho-blue/=lib/morpho-blue/src",
]
}
39 changes: 39 additions & 0 deletions broadcast/LiquidationMorpho.s.sol/1/run-1713946459.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
{
"transactions": [
{
"hash": "0x1b8981e3ccdda8d4c6634933f22595b81f0d43b2c26176a10384799fe36ea084",
"transactionType": "CALL",
"contractName": null,
"contractAddress": "0x4B1b4fEc85e265cE8b152fB233512FE4002fDEC3",
"function": "liquidate((address,address,address,address,uint256),address,uint256,bytes)",
"arguments": [
"(0x0000206329b97DB379d5E1Bf586BbDB969C63274, 0xdd0f28e19C1780eb6396170735D45153D261490d, 0x4D7d8eF974428a7D73C90B0249003D30cf97239E, 0x870aC11D48B15DB9a138Cf899d20F13F79Ba00BC, 860000000000000000)",
"0xA9DdD91249DFdd450E81E1c56Ab60E1A62651701",
"50000000000000000000",
"0x000000000000000000000000dd0f28e19c1780eb6396170735d45153d261490d0000000000000000000000000000206329b97db379d5e1bf586bbdb969c63274000000000000000000000000000000000000000000000002b5e3af16b1880000000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000005c0000000000000000000000000a9bbbdde822789f123667044443dc7001fb43c01000000000000000000000000000000000000000000000001158e460913df423e0000000000000000000000000000000000000000000000000000000000000003000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000005200000000000000000000000000000000000000000000000000000000000000000000000000000000000000000a9bbbdde822789f123667044443dc7001fb43c01000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000004a0000000000000000000000000000000000000000000000002b26b8169c7af0000000000000000000000000000000000000000000000000002b26b8169c7af000000000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000000e000000000000000000000000000000000000000000000000000000000000004600000000000000000000000000000000000000000000000000000000000000001000000000000000000000000a0b86991c6218b36c1d19d4a2e9eb0ce3606eb48000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000320000000000000000000000000a0b86991c6218b36c1d19d4a2e9eb0ce3606eb480000000000000000000000000000000000000000000000000000000008e15d620000000000000000000000000000000000000000000000000000000000000060000000000000000000000000000000000000000000000000000000000000028807ed2379000000000000000000000000e37e799d5077682fa0a244d46e5649f71457bd09000000000000000000000000a0b86991c6218b36c1d19d4a2e9eb0ce3606eb480000000000000000000000000000206329b97db379d5e1bf586bbdb969c63274000000000000000000000000e37e799d5077682fa0a244d46e5649f71457bd090000000000000000000000004b1b4fec85e265ce8b152fb233512fe4002fdec30000000000000000000000000000000000000000000000000000000002fd7154000000000000000000000000000000000000000000000002b134541e4aae700000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000120000000000000000000000000000000000000000000000000000000000000013c00000000000000000000000000000000000000000000000000011e0000f05120222222fd79264bbe280b4986f6fefbc3524d0137a0b86991c6218b36c1d19d4a2e9eb0ce3606eb4800043b6a1fe000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000a0b86991c6218b36c1d19d4a2e9eb0ce3606eb480000000000000000000000000000206329b97db379d5e1bf586bbdb969c63274000000000000000000000000111111125421ca6dc452d289314280a0f8842a6500000000000000000000000000000000000000000000000000000000000000000020d6bdbf780000206329b97db379d5e1bf586bbdb969c63274111111125421ca6dc452d289314280a0f8842a6500000000f737be4600000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000002fd7154"
],
"transaction": {
"type": "0x02",
"from": "0xa9bbbdde822789f123667044443dc7001fb43c01",
"to": "0x4b1b4fec85e265ce8b152fb233512fe4002fdec3",
"gas": "0xdc7a6",
"value": "0x0",
"data": "0x87cb0f510000000000000000000000000000206329b97db379d5e1bf586bbdb969c63274000000000000000000000000dd0f28e19c1780eb6396170735d45153d261490d0000000000000000000000004d7d8ef974428a7d73c90b0249003d30cf97239e000000000000000000000000870ac11d48b15db9a138cf899d20f13f79ba00bc0000000000000000000000000000000000000000000000000bef55718ad60000000000000000000000000000a9ddd91249dfdd450e81e1c56ab60e1a62651701000000000000000000000000000000000000000000000002b5e3af16b188000000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000000660000000000000000000000000dd0f28e19c1780eb6396170735d45153d261490d0000000000000000000000000000206329b97db379d5e1bf586bbdb969c63274000000000000000000000000000000000000000000000002b5e3af16b1880000000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000005c0000000000000000000000000a9bbbdde822789f123667044443dc7001fb43c01000000000000000000000000000000000000000000000001158e460913df423e0000000000000000000000000000000000000000000000000000000000000003000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000005200000000000000000000000000000000000000000000000000000000000000000000000000000000000000000a9bbbdde822789f123667044443dc7001fb43c01000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000004a0000000000000000000000000000000000000000000000002b26b8169c7af0000000000000000000000000000000000000000000000000002b26b8169c7af000000000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000000e000000000000000000000000000000000000000000000000000000000000004600000000000000000000000000000000000000000000000000000000000000001000000000000000000000000a0b86991c6218b36c1d19d4a2e9eb0ce3606eb48000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000320000000000000000000000000a0b86991c6218b36c1d19d4a2e9eb0ce3606eb480000000000000000000000000000000000000000000000000000000008e15d620000000000000000000000000000000000000000000000000000000000000060000000000000000000000000000000000000000000000000000000000000028807ed2379000000000000000000000000e37e799d5077682fa0a244d46e5649f71457bd09000000000000000000000000a0b86991c6218b36c1d19d4a2e9eb0ce3606eb480000000000000000000000000000206329b97db379d5e1bf586bbdb969c63274000000000000000000000000e37e799d5077682fa0a244d46e5649f71457bd090000000000000000000000004b1b4fec85e265ce8b152fb233512fe4002fdec30000000000000000000000000000000000000000000000000000000002fd7154000000000000000000000000000000000000000000000002b134541e4aae700000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000120000000000000000000000000000000000000000000000000000000000000013c00000000000000000000000000000000000000000000000000011e0000f05120222222fd79264bbe280b4986f6fefbc3524d0137a0b86991c6218b36c1d19d4a2e9eb0ce3606eb4800043b6a1fe000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000a0b86991c6218b36c1d19d4a2e9eb0ce3606eb480000000000000000000000000000206329b97db379d5e1bf586bbdb969c63274000000000000000000000000111111125421ca6dc452d289314280a0f8842a6500000000000000000000000000000000000000000000000000000000000000000020d6bdbf780000206329b97db379d5e1bf586bbdb969c63274111111125421ca6dc452d289314280a0f8842a6500000000f737be4600000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000002fd7154",
"nonce": "0x23",
"accessList": []
},
"additionalContracts": [],
"isFixedGasLimit": false
}
],
"receipts": [],
"libraries": [],
"pending": [
"0x1b8981e3ccdda8d4c6634933f22595b81f0d43b2c26176a10384799fe36ea084"
],
"returns": {},
"timestamp": 1713946459,
"chain": 1,
"multi": false,
"commit": "2355add"
}
Loading

0 comments on commit 48455d7

Please sign in to comment.