Skip to content

Commit

Permalink
feat: add iolend
Browse files Browse the repository at this point in the history
  • Loading branch information
Jeff-CCH committed Sep 10, 2024
1 parent e0e78b7 commit be7ccd6
Show file tree
Hide file tree
Showing 38 changed files with 7,774 additions and 2 deletions.
5 changes: 5 additions & 0 deletions .changeset/cold-years-study.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@protocolink/logics': minor
---

add IOLEND
2 changes: 1 addition & 1 deletion .env.iota.pb
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
CHAIN_ID=8822
BLOCK_NUMBER=292100
BLOCK_NUMBER=1126425
HTTP_RPC_URL=https://json-rpc.evm.iotaledger.net
1 change: 1 addition & 0 deletions src/logics/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ export * as aavev3 from './aave-v3';
export * as balancerv2 from './balancer-v2';
export * as compoundv2 from './compound-v2';
export * as compoundv3 from './compound-v3';
export * as iolend from './iolend';
export * as magicsea from './magicsea';
export * as morphoblue from './morphoblue';
export * as openoceanv2 from './openocean-v2';
Expand Down
44 changes: 44 additions & 0 deletions src/logics/iolend/abis/DebtTokenBase.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
[
{
"inputs": [
{
"internalType": "address",
"name": "delegatee",
"type": "address"
},
{
"internalType": "uint256",
"name": "amount",
"type": "uint256"
}
],
"name": "approveDelegation",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "fromUser",
"type": "address"
},
{
"internalType": "address",
"name": "toUser",
"type": "address"
}
],
"name": "borrowAllowance",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
}
]
Loading

0 comments on commit be7ccd6

Please sign in to comment.