Skip to content

Commit

Permalink
feat: integrate primeeth and staderethx (#542)
Browse files Browse the repository at this point in the history
  • Loading branch information
minhnhathoang authored Oct 14, 2024
1 parent 7506ad4 commit 18107a7
Show file tree
Hide file tree
Showing 27 changed files with 6,169 additions and 0 deletions.
31 changes: 31 additions & 0 deletions pkg/liquidity-source/primeeth/abis.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
package primeeth

import (
"bytes"
"github.com/ethereum/go-ethereum/accounts/abi"
)

var (
lrtDepositPoolABI abi.ABI
lrtConfigABI abi.ABI
lrtOracleABI abi.ABI
)

func init() {
builder := []struct {
ABI *abi.ABI
data []byte
}{
{&lrtDepositPoolABI, lrtDepositPoolABIJson},
{&lrtConfigABI, lrtConfigABIJson},
{&lrtOracleABI, lrtOracleABIJson},
}

for _, b := range builder {
var err error
*b.ABI, err = abi.JSON(bytes.NewReader(b.data))
if err != nil {
panic(err)
}
}
}
Loading

0 comments on commit 18107a7

Please sign in to comment.