0.0.17 • Published 2 years ago

@pole.finance/pole v0.0.17

Weekly downloads
-
License
AGPL-3.0
Repository
-
Last release
2 years ago

Pole Aggregator

Pole Aggregator helps user repeatedly deposit and borrow from Solana lending protocols.

Development

Version Requirements

  • Anchor v0.18.0
  • Solana v1.7.x (You will encounter compute unit issue if you use v1.8.x or higher)

To start a front-end test environment

anchor localnet

In a separate terminal run the following command to set up all the on-chain program:

anchor migrate

Change directory and run the front end

cd app
yarn start

To run the tests locally

yarn idl:generate
yarn test:e2e

Mac users need to install GNU Sed for yarn idl:generate to work properly.

brew install gnu-sed

Update Program Run Book

cargo build-bpf
solana program write-buffer <compiled_so_file_path> --output json --buffer <new-buffer-name>
solana program set-buffer-authority <buffer-pubkey> --new-buffer-authority <program_upgrade_authority>
solana program deploy --buffer <buffer-pubkey> --program-id <program-id-json> --keypair usb://ledger

Addresses

Pole Pool Addresses

USDC Pole Pool: 55sakCELRnCfAQNn968tcWHn17cGYWgqxW7pAnqtErMH

Multisig Address

  • Authority: DfU79xbq1PT56VAudnM1fErf466sFFJybJvBmrwjch2c
  • USDC token account: FCGrEGR3Nq8UFBJrGxWM4TZdMmij1ZQ5mb3Ab9r2BsSP