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

BACK-1535: Integrate Spark (sDAI) #667

Merged
merged 32 commits into from
May 14, 2024
Merged
Show file tree
Hide file tree
Changes from 31 commits
Commits
Show all changes
32 commits
Select commit Hold shift + click to select a range
446dcb2
chore: initial commit
Wertusser May 2, 2024
a55fd9d
feat: added SavingsDai abi, test setup
Wertusser May 2, 2024
d7dbf64
chore: typo
Wertusser May 2, 2024
b757d64
chore: pot contract ABI
Wertusser May 6, 2024
4ba9c31
fix: sdai pool, get prices, get top pools
Wertusser May 6, 2024
18f6069
fix: add adapters, temporary remove buy e2e tests
Wertusser May 6, 2024
e67093c
fix: add adapter06 to base configs
Wertusser May 6, 2024
ade1e90
fix: add buy adapter for sdai
Wertusser May 7, 2024
960a1bb
fix: use angle adapter for sdai integration
Wertusser May 7, 2024
2ac795d
feat: event processing from maker protocol
Wertusser May 8, 2024
c232242
feat: event state update support, fix adapter params
Wertusser May 8, 2024
236ed5f
fix: minor changes
Wertusser May 9, 2024
120a87a
fix: replace sdai holder
Wertusser May 9, 2024
0f91d5c
fix: buy price calculation
Wertusser May 9, 2024
5f91f0e
fix: remove cage event
Wertusser May 9, 2024
4ff9913
chore: wording in error msg
Wertusser May 9, 2024
7c85b79
feat: validate state script
Wertusser May 9, 2024
33340fc
fix: working example script
Wertusser May 9, 2024
8a83fdf
fix: sdai rpow calculation
Wertusser May 10, 2024
87bb7b1
2.50.6-sdai
Wertusser May 10, 2024
b6872ca
fix: use new adapter06
Wertusser May 10, 2024
2e284e8
Merge branch 'master' of https://github.com/paraswap/paraswap-dex-lib…
Wertusser May 10, 2024
6113339
2.50.7-sdai
Wertusser May 10, 2024
070f9dd
chore: fix dexkey
Wertusser May 13, 2024
749fc0e
2.50.7-sdai.1
Wertusser May 13, 2024
7561d8b
fix: dex key mismatch
Wertusser May 13, 2024
9735c3d
chore: remove old comment
Wertusser May 13, 2024
9666e35
chore: rename sdai -> spark
Wertusser May 14, 2024
a90976d
2.50.7-sdai.2
Wertusser May 14, 2024
f207e74
fix: update sdai pool name
Wertusser May 14, 2024
7811137
2.50.7-sdai.3
Wertusser May 14, 2024
f18a19a
2.50.8
Wertusser May 14, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@paraswap/dex-lib",
"version": "2.50.7",
"version": "2.50.7-sdai.3",
"main": "build/index.js",
"types": "build/index.d.ts",
"repository": "https://github.com/paraswap/paraswap-dex-lib",
Expand Down
322 changes: 322 additions & 0 deletions src/abi/maker-psm/pot.json
JackieJoo marked this conversation as resolved.
Show resolved Hide resolved
Original file line number Diff line number Diff line change
@@ -0,0 +1,322 @@
[
{
"inputs": [
{
"internalType": "address",
"name": "vat_",
"type": "address"
}
],
"payable": false,
"stateMutability": "nonpayable",
"type": "constructor"
},
{
"anonymous": true,
"inputs": [
{
"indexed": true,
"internalType": "bytes4",
"name": "sig",
"type": "bytes4"
},
{
"indexed": true,
"internalType": "address",
"name": "usr",
"type": "address"
},
{
"indexed": true,
"internalType": "bytes32",
"name": "arg1",
"type": "bytes32"
},
{
"indexed": true,
"internalType": "bytes32",
"name": "arg2",
"type": "bytes32"
},
{
"indexed": false,
"internalType": "bytes",
"name": "data",
"type": "bytes"
}
],
"name": "LogNote",
"type": "event"
},
{
"constant": true,
"inputs": [],
"name": "Pie",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"payable": false,
"stateMutability": "view",
"type": "function"
},
{
"constant": false,
"inputs": [],
"name": "cage",
"outputs": [],
"payable": false,
"stateMutability": "nonpayable",
"type": "function"
},
{
"constant": true,
"inputs": [],
"name": "chi",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"payable": false,
"stateMutability": "view",
"type": "function"
},
{
"constant": false,
"inputs": [
{
"internalType": "address",
"name": "guy",
"type": "address"
}
],
"name": "deny",
"outputs": [],
"payable": false,
"stateMutability": "nonpayable",
"type": "function"
},
{
"constant": false,
"inputs": [],
"name": "drip",
"outputs": [
{
"internalType": "uint256",
"name": "tmp",
"type": "uint256"
}
],
"payable": false,
"stateMutability": "nonpayable",
"type": "function"
},
{
"constant": true,
"inputs": [],
"name": "dsr",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"payable": false,
"stateMutability": "view",
"type": "function"
},
{
"constant": false,
"inputs": [
{
"internalType": "uint256",
"name": "wad",
"type": "uint256"
}
],
"name": "exit",
"outputs": [],
"payable": false,
"stateMutability": "nonpayable",
"type": "function"
},
{
"constant": false,
"inputs": [
{
"internalType": "bytes32",
"name": "what",
"type": "bytes32"
},
{
"internalType": "uint256",
"name": "data",
"type": "uint256"
}
],
"name": "file",
"outputs": [],
"payable": false,
"stateMutability": "nonpayable",
"type": "function"
},
{
"constant": false,
"inputs": [
{
"internalType": "bytes32",
"name": "what",
"type": "bytes32"
},
{
"internalType": "address",
"name": "addr",
"type": "address"
}
],
"name": "file",
"outputs": [],
"payable": false,
"stateMutability": "nonpayable",
"type": "function"
},
{
"constant": false,
"inputs": [
{
"internalType": "uint256",
"name": "wad",
"type": "uint256"
}
],
"name": "join",
"outputs": [],
"payable": false,
"stateMutability": "nonpayable",
"type": "function"
},
{
"constant": true,
"inputs": [],
"name": "live",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"payable": false,
"stateMutability": "view",
"type": "function"
},
{
"constant": true,
"inputs": [
{
"internalType": "address",
"name": "",
"type": "address"
}
],
"name": "pie",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"payable": false,
"stateMutability": "view",
"type": "function"
},
{
"constant": false,
"inputs": [
{
"internalType": "address",
"name": "guy",
"type": "address"
}
],
"name": "rely",
"outputs": [],
"payable": false,
"stateMutability": "nonpayable",
"type": "function"
},
{
"constant": true,
"inputs": [],
"name": "rho",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"payable": false,
"stateMutability": "view",
"type": "function"
},
{
"constant": true,
"inputs": [],
"name": "vat",
"outputs": [
{
"internalType": "contract VatLike",
"name": "",
"type": "address"
}
],
"payable": false,
"stateMutability": "view",
"type": "function"
},
{
"constant": true,
"inputs": [],
"name": "vow",
"outputs": [
{
"internalType": "address",
"name": "",
"type": "address"
}
],
"payable": false,
"stateMutability": "view",
"type": "function"
},
{
"constant": true,
"inputs": [
{
"internalType": "address",
"name": "",
"type": "address"
}
],
"name": "wards",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"payable": false,
"stateMutability": "view",
"type": "function"
}
]