updated for new new deployment
This commit is contained in:
parent
ad0c709809
commit
f27dfcd21d
3 changed files with 5 additions and 7 deletions
|
|
@ -3,8 +3,7 @@ sources:
|
|||
- name: harberg
|
||||
handler:
|
||||
graphql:
|
||||
# endpoint: https://api.studio.thegraph.com/query/47986/harberg-base-sepolia/version/latest
|
||||
endpoint: https://api.studio.thegraph.com/query/47986/harberg-base-sepolia/version/latest
|
||||
endpoint: https://api.studio.thegraph.com/query/47986/harberg-base-sepolia/v0.0.5
|
||||
transforms:
|
||||
- autoPagination:
|
||||
# You might want to disable schema validation for faster startup
|
||||
|
|
|
|||
|
|
@ -1,4 +1,5 @@
|
|||
## RUN
|
||||
|
||||
yarn
|
||||
yarn graphclient --fileType json build
|
||||
node service.js
|
||||
|
||||
|
|
|
|||
|
|
@ -23,11 +23,9 @@ const LM_CONTRACT_ADDRESS = process.env.LM_CONTRACT_ADDRESS;
|
|||
const STAKE_CONTRACT_ADDRESS = process.env.STAKE_CONTRACT_ADDRESS;
|
||||
|
||||
const LM_ABI = [
|
||||
// Add your contract's ABI here
|
||||
{"type":"function","name":"recenter","inputs":[],"outputs":[],"stateMutability":"nonpayable"}
|
||||
];
|
||||
const STAKE_ABI = [
|
||||
// Add your contract's ABI here
|
||||
{"inputs":[{"internalType":"uint256","name":"positionId","type":"uint256"}],"name":"payTax","outputs":[],"stateMutability":"nonpayable","type":"function"}
|
||||
];
|
||||
|
||||
|
|
@ -148,8 +146,8 @@ app.get('/status', async (req, res) => {
|
|||
const status = {
|
||||
balance: `${balance} ETH`,
|
||||
uptime: uptime,
|
||||
lastRecenterTime: lastRecenterTime ? lastRecenterTime.toString() : 'Never',
|
||||
lastLiquidationTime: lastLiquidationTime ? lastLiquidationTime.toString() : 'Never'
|
||||
lastRecenterTime: lastRecenterTime ? lastRecenterTime.toISOString() : 'Never',
|
||||
lastLiquidationTime: lastLiquidationTime ? lastLiquidationTime.toISOString() : 'Never'
|
||||
};
|
||||
|
||||
if (parseFloat(balance) < 0.1) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue