├── .gitattributes ├── .github └── workflows │ └── build.yml ├── .gitignore ├── Anchor.toml ├── Cargo.lock ├── Cargo.toml ├── LICENSE ├── migrations └── deploy.ts ├── package.json ├── programs └── flashaggregator │ ├── Cargo.toml │ ├── Xargo.toml │ └── src │ ├── cpi.rs │ └── lib.rs ├── readme.md ├── tests ├── blockchain.ts ├── flash_loan_aggregator.ts ├── src │ ├── constants.ts │ ├── index.ts │ ├── instructions │ │ ├── borrowFlashLoan.ts │ │ ├── borrowObligationLiquidity.ts │ │ ├── depositObligationCollateral.ts │ │ ├── depositReserveLiquidity.ts │ │ ├── index.ts │ │ ├── initLendingMarket.ts │ │ ├── initObligation.ts │ │ ├── initReserve.ts │ │ ├── instruction.ts │ │ ├── liquidateObligation.ts │ │ ├── redeemReserveCollateral.ts │ │ ├── refreshObligation.ts │ │ ├── refreshReserve.ts │ │ ├── repayObligationLiquidity.ts │ │ ├── setLendingMarketOwner.ts │ │ └── withdrawObligationCollateral.ts │ ├── state │ │ ├── index.ts │ │ ├── lastUpdate.ts │ │ ├── lendingMarket.ts │ │ ├── obligation.ts │ │ └── reserve.ts │ └── util │ │ ├── index.ts │ │ └── layout.ts └── util.ts ├── tsconfig.json └── yarn.lock /.gitattributes: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ashburton-Finance/flash-aggregator/HEAD/.gitattributes -------------------------------------------------------------------------------- /.github/workflows/build.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ashburton-Finance/flash-aggregator/HEAD/.github/workflows/build.yml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | 2 | .anchor 3 | .DS_Store 4 | target 5 | **/*.rs.bk 6 | node_modules 7 | -------------------------------------------------------------------------------- /Anchor.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ashburton-Finance/flash-aggregator/HEAD/Anchor.toml -------------------------------------------------------------------------------- /Cargo.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ashburton-Finance/flash-aggregator/HEAD/Cargo.lock -------------------------------------------------------------------------------- /Cargo.toml: -------------------------------------------------------------------------------- 1 | [workspace] 2 | members = [ 3 | "programs/*" 4 | ] 5 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ashburton-Finance/flash-aggregator/HEAD/LICENSE -------------------------------------------------------------------------------- /migrations/deploy.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ashburton-Finance/flash-aggregator/HEAD/migrations/deploy.ts -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ashburton-Finance/flash-aggregator/HEAD/package.json -------------------------------------------------------------------------------- /programs/flashaggregator/Cargo.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ashburton-Finance/flash-aggregator/HEAD/programs/flashaggregator/Cargo.toml -------------------------------------------------------------------------------- /programs/flashaggregator/Xargo.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ashburton-Finance/flash-aggregator/HEAD/programs/flashaggregator/Xargo.toml -------------------------------------------------------------------------------- /programs/flashaggregator/src/cpi.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ashburton-Finance/flash-aggregator/HEAD/programs/flashaggregator/src/cpi.rs -------------------------------------------------------------------------------- /programs/flashaggregator/src/lib.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ashburton-Finance/flash-aggregator/HEAD/programs/flashaggregator/src/lib.rs -------------------------------------------------------------------------------- /readme.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ashburton-Finance/flash-aggregator/HEAD/readme.md -------------------------------------------------------------------------------- /tests/blockchain.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ashburton-Finance/flash-aggregator/HEAD/tests/blockchain.ts -------------------------------------------------------------------------------- /tests/flash_loan_aggregator.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ashburton-Finance/flash-aggregator/HEAD/tests/flash_loan_aggregator.ts -------------------------------------------------------------------------------- /tests/src/constants.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ashburton-Finance/flash-aggregator/HEAD/tests/src/constants.ts -------------------------------------------------------------------------------- /tests/src/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ashburton-Finance/flash-aggregator/HEAD/tests/src/index.ts -------------------------------------------------------------------------------- /tests/src/instructions/borrowFlashLoan.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ashburton-Finance/flash-aggregator/HEAD/tests/src/instructions/borrowFlashLoan.ts -------------------------------------------------------------------------------- /tests/src/instructions/borrowObligationLiquidity.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ashburton-Finance/flash-aggregator/HEAD/tests/src/instructions/borrowObligationLiquidity.ts -------------------------------------------------------------------------------- /tests/src/instructions/depositObligationCollateral.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ashburton-Finance/flash-aggregator/HEAD/tests/src/instructions/depositObligationCollateral.ts -------------------------------------------------------------------------------- /tests/src/instructions/depositReserveLiquidity.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ashburton-Finance/flash-aggregator/HEAD/tests/src/instructions/depositReserveLiquidity.ts -------------------------------------------------------------------------------- /tests/src/instructions/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ashburton-Finance/flash-aggregator/HEAD/tests/src/instructions/index.ts -------------------------------------------------------------------------------- /tests/src/instructions/initLendingMarket.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ashburton-Finance/flash-aggregator/HEAD/tests/src/instructions/initLendingMarket.ts -------------------------------------------------------------------------------- /tests/src/instructions/initObligation.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ashburton-Finance/flash-aggregator/HEAD/tests/src/instructions/initObligation.ts -------------------------------------------------------------------------------- /tests/src/instructions/initReserve.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ashburton-Finance/flash-aggregator/HEAD/tests/src/instructions/initReserve.ts -------------------------------------------------------------------------------- /tests/src/instructions/instruction.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ashburton-Finance/flash-aggregator/HEAD/tests/src/instructions/instruction.ts -------------------------------------------------------------------------------- /tests/src/instructions/liquidateObligation.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ashburton-Finance/flash-aggregator/HEAD/tests/src/instructions/liquidateObligation.ts -------------------------------------------------------------------------------- /tests/src/instructions/redeemReserveCollateral.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ashburton-Finance/flash-aggregator/HEAD/tests/src/instructions/redeemReserveCollateral.ts -------------------------------------------------------------------------------- /tests/src/instructions/refreshObligation.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ashburton-Finance/flash-aggregator/HEAD/tests/src/instructions/refreshObligation.ts -------------------------------------------------------------------------------- /tests/src/instructions/refreshReserve.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ashburton-Finance/flash-aggregator/HEAD/tests/src/instructions/refreshReserve.ts -------------------------------------------------------------------------------- /tests/src/instructions/repayObligationLiquidity.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ashburton-Finance/flash-aggregator/HEAD/tests/src/instructions/repayObligationLiquidity.ts -------------------------------------------------------------------------------- /tests/src/instructions/setLendingMarketOwner.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ashburton-Finance/flash-aggregator/HEAD/tests/src/instructions/setLendingMarketOwner.ts -------------------------------------------------------------------------------- /tests/src/instructions/withdrawObligationCollateral.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ashburton-Finance/flash-aggregator/HEAD/tests/src/instructions/withdrawObligationCollateral.ts -------------------------------------------------------------------------------- /tests/src/state/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ashburton-Finance/flash-aggregator/HEAD/tests/src/state/index.ts -------------------------------------------------------------------------------- /tests/src/state/lastUpdate.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ashburton-Finance/flash-aggregator/HEAD/tests/src/state/lastUpdate.ts -------------------------------------------------------------------------------- /tests/src/state/lendingMarket.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ashburton-Finance/flash-aggregator/HEAD/tests/src/state/lendingMarket.ts -------------------------------------------------------------------------------- /tests/src/state/obligation.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ashburton-Finance/flash-aggregator/HEAD/tests/src/state/obligation.ts -------------------------------------------------------------------------------- /tests/src/state/reserve.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ashburton-Finance/flash-aggregator/HEAD/tests/src/state/reserve.ts -------------------------------------------------------------------------------- /tests/src/util/index.ts: -------------------------------------------------------------------------------- 1 | export * from './layout'; 2 | -------------------------------------------------------------------------------- /tests/src/util/layout.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ashburton-Finance/flash-aggregator/HEAD/tests/src/util/layout.ts -------------------------------------------------------------------------------- /tests/util.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ashburton-Finance/flash-aggregator/HEAD/tests/util.ts -------------------------------------------------------------------------------- /tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ashburton-Finance/flash-aggregator/HEAD/tsconfig.json -------------------------------------------------------------------------------- /yarn.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ashburton-Finance/flash-aggregator/HEAD/yarn.lock --------------------------------------------------------------------------------