Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add iolend #79

Merged
merged 1 commit into from
Sep 10, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading