The smart contracts for the Folks Finance Cross-Chain Lending Protocol.
Last updated Mar 6, 2026
24
Stars
13
Forks
0
Issues
0
Stars/day
Attention Score
62
Language breakdown
TypeScript 71.1%
Solidity 28.9%
▸ Files
click to expand
README
folks-finance-xchain-contracts
The smart contracts for the Folks Finance Cross-Chain Lending Protocol.
Getting Started
The repository uses both Hardhat and Foundry.
To setup:
- Clone the repo
- Run
npm install - Run
forge install
- (Optional) run
npm run clean - Run
npm run build
Smart Contracts
The smart contracts are split into 6 distinct folders:
contracts/bridgecontains all the smart contracts relating to sending messages (data and token) between the spoke chains and hub chain. Unless named specifically, they are deployed both in the spoke chains and hub chain.contracts/hubcontains the smart contracts relating to the core business logic of the protocol. They are deployed only in the hub chain.contracts/hub-rewardscontains the smart contracts relating to the core business logic of the on-chain rewards. They are deployed only in the hub chain.contracts/oraclecontains the smart contracts relating to the oracle for token price information. They are deployed only in the hub chain.contracts/spokecontains the smart contracts relating to the user entry point into the protocol. They are deployed only in the spoke chains (the hub chain may also be a spoke chain).contracts/spoke-rewardscontains the smart contracts relating to the user entry point into the on-chain rewards. They are deployed only in the spoke chains (the hub chain may also be a spoke chain).
test folder which contains smart contracts used for testing. These are not part of the protocol and won't be deployed.
Testing
To run all tests npm run test.
To run specific tests npm run test ${PATHTOFILE}.
License
If there is a license in a sub folder e.g. at /contracts/oracle then that applies for all files under it, otherwise refer to the license in the root folder.
🔗 More in this category