Skip to content

Commit

Permalink
feat: support Velocore V2 CPMM (#251)
Browse files Browse the repository at this point in the history
  • Loading branch information
vuquang23 authored Dec 7, 2023
1 parent 5ecc585 commit 53751c9
Show file tree
Hide file tree
Showing 25 changed files with 4,052 additions and 0 deletions.
30 changes: 30 additions & 0 deletions pkg/liquidity-source/velocore-v2/cpmm/abis.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
package cpmm

import (
"bytes"

"github.com/ethereum/go-ethereum/accounts/abi"
)

var (
factoryABI abi.ABI
poolABI abi.ABI
)

func init() {
builder := []struct {
ABI *abi.ABI
data []byte
}{
{&factoryABI, factoryABIJson},
{&poolABI, poolABIJson},
}

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 53751c9

Please sign in to comment.