├── .DS_Store ├── .env.example ├── .gitignore ├── .gitmodules ├── .prettierrc ├── .vscode └── settings.json ├── README.md ├── bash └── verify_contracts.sh ├── contracts ├── .DS_Store ├── BimaBurner.sol ├── BimaPSM.sol ├── adapters │ └── LendingVaultAdapter.sol ├── core │ ├── BimaCore.sol │ ├── BorrowerOperations.sol │ ├── DebtToken.sol │ ├── Factory.sol │ ├── GasPool.sol │ ├── LiquidationManager.sol │ ├── PriceFeed.sol │ ├── SortedTroves.sol │ ├── StabilityPool.sol │ ├── TroveManager.sol │ └── helpers │ │ ├── MultiCollateralHintHelpers.sol │ │ ├── MultiTroveGetter.sol │ │ └── TroveManagerGetters.sol ├── dao │ ├── AdminVoting.sol │ ├── AirdropDistributor.sol │ ├── AllocationVesting.sol │ ├── BimaToken.sol │ ├── BoostCalculator.sol │ ├── EmissionSchedule.sol │ ├── FeeReceiver.sol │ ├── IncentiveVoting.sol │ ├── InterimAdmin.sol │ ├── TokenLocker.sol │ └── Vault.sol ├── dependencies │ ├── BimaBase.sol │ ├── BimaMath.sol │ ├── BimaOwnable.sol │ ├── Constants.sol │ ├── DelegatedOps.sol │ └── SystemStart.sol ├── interfaces │ ├── IAggregatorV3Interface.sol │ ├── IBimaBase.sol │ ├── IBimaCore.sol │ ├── IBimaOwnable.sol │ ├── IBimaPSM.sol │ ├── IBimaToken.sol │ ├── IBoostCalculator.sol │ ├── IBoostDelegate.sol │ ├── IBorrowerOperations.sol │ ├── ICurveProxy.sol │ ├── IDebtToken.sol │ ├── IDelegatedOps.sol │ ├── IERC2612.sol │ ├── IEmissionReceiver.sol │ ├── IEmissionSchedule.sol │ ├── IFactory.sol │ ├── IGaugeController.sol │ ├── IIncentiveVoting.sol │ ├── ILendingVaultAdapter.sol │ ├── ILiquidationManager.sol │ ├── ILiquidityGauge.sol │ ├── IPriceFeed.sol │ ├── ISortedTroves.sol │ ├── IStabilityPool.sol │ ├── ISystemStart.sol │ ├── ITokenLocker.sol │ ├── ITroveManager.sol │ └── IVault.sol ├── mock │ ├── BimaFaucet.sol │ ├── Lock.sol │ ├── MockOracle.sol │ ├── MockVault.sol │ └── StakedBTC.sol ├── staking │ ├── Convex │ │ ├── ConvexDepositFactory.sol │ │ └── ConvexDepositToken.sol │ └── Curve │ │ ├── CurveDepositFactory.sol │ │ ├── CurveDepositToken.sol │ │ └── CurveProxy.sol └── wrappers │ ├── BimaWrappedCollateral.sol │ ├── BimaWrappedCollateralFactory.sol │ └── StorkOracleWrapper.sol ├── docs ├── mainnet.md └── testnet-deployments.md ├── foundry.toml ├── hardhat.config.ts ├── ignition └── modules │ ├── Ecosystem.ts │ └── Lock.ts ├── package.json ├── scripts ├── deployer.ts ├── deployments │ ├── deployBimaBurner.ts │ ├── deployCore.ts │ ├── deployFaucet.ts │ ├── deployLendingVaultAdapter.ts │ ├── deployMockCollateral.ts │ ├── deployMockOracle.ts │ ├── deployPSM.ts │ ├── deployStorkOracleWrapper.ts │ ├── deployTroveManager.ts │ ├── oftConfigReceive.ts │ ├── oftConfigSend.ts │ └── peerWhitelist.ts ├── fetchData.ts ├── lol.ts ├── mintBUSD.ts ├── testMintBUSD.ts └── transferERC20.ts ├── test ├── Ecosystem.ts ├── Faucet.test.ts ├── Lock ├── TestMintBUSD └── foundry │ ├── BimaPSM │ ├── Mint.t.sol │ ├── OwnerFunctions.t.sol │ ├── PSMTestSetup.t.sol │ ├── Redeem.t.sol │ └── ViewFunctions.t.sol │ ├── TestSetup.sol │ ├── TroveManagerSanity.t.sol │ ├── adapters │ └── LendingVaultAdapter.t.sol │ ├── core │ ├── BimaCoreTest.t.sol │ ├── BorrowerOperationsTest.t.sol │ ├── DebtTokenTest.t.sol │ ├── FactoryTest.t.sol │ ├── LiquidationManagerTest.t.sol │ ├── PriceFeedTest.t.sol │ └── StabilityPoolTest.t.sol │ ├── dao │ ├── AdminVotingTest.t.sol │ ├── AllocationVestingTest.t.sol │ ├── EmissionScheduleTest.t.sol │ ├── InterimAdminTest.t.sol │ ├── TokenLockerTest.t.sol │ └── VaultTest.t.sol │ ├── dependencies │ └── BimaMathTest.t.sol │ ├── poc.t.sol │ └── wrappers │ ├── StorkOracleWrapper.t.sol │ └── StorkOracleWrapperMocked.t.sol └── tsconfig.json /.DS_Store: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Bima-Labs/bima-v1-core/HEAD/.DS_Store -------------------------------------------------------------------------------- /.env.example: -------------------------------------------------------------------------------- 1 | PRIVATE_KEY= -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Bima-Labs/bima-v1-core/HEAD/.gitignore -------------------------------------------------------------------------------- /.gitmodules: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Bima-Labs/bima-v1-core/HEAD/.gitmodules -------------------------------------------------------------------------------- /.prettierrc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Bima-Labs/bima-v1-core/HEAD/.prettierrc -------------------------------------------------------------------------------- /.vscode/settings.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Bima-Labs/bima-v1-core/HEAD/.vscode/settings.json -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Bima-Labs/bima-v1-core/HEAD/README.md -------------------------------------------------------------------------------- /bash/verify_contracts.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Bima-Labs/bima-v1-core/HEAD/bash/verify_contracts.sh -------------------------------------------------------------------------------- /contracts/.DS_Store: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Bima-Labs/bima-v1-core/HEAD/contracts/.DS_Store -------------------------------------------------------------------------------- /contracts/BimaBurner.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Bima-Labs/bima-v1-core/HEAD/contracts/BimaBurner.sol -------------------------------------------------------------------------------- /contracts/BimaPSM.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Bima-Labs/bima-v1-core/HEAD/contracts/BimaPSM.sol -------------------------------------------------------------------------------- /contracts/adapters/LendingVaultAdapter.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Bima-Labs/bima-v1-core/HEAD/contracts/adapters/LendingVaultAdapter.sol -------------------------------------------------------------------------------- /contracts/core/BimaCore.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Bima-Labs/bima-v1-core/HEAD/contracts/core/BimaCore.sol -------------------------------------------------------------------------------- /contracts/core/BorrowerOperations.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Bima-Labs/bima-v1-core/HEAD/contracts/core/BorrowerOperations.sol -------------------------------------------------------------------------------- /contracts/core/DebtToken.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Bima-Labs/bima-v1-core/HEAD/contracts/core/DebtToken.sol -------------------------------------------------------------------------------- /contracts/core/Factory.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Bima-Labs/bima-v1-core/HEAD/contracts/core/Factory.sol -------------------------------------------------------------------------------- /contracts/core/GasPool.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Bima-Labs/bima-v1-core/HEAD/contracts/core/GasPool.sol -------------------------------------------------------------------------------- /contracts/core/LiquidationManager.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Bima-Labs/bima-v1-core/HEAD/contracts/core/LiquidationManager.sol -------------------------------------------------------------------------------- /contracts/core/PriceFeed.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Bima-Labs/bima-v1-core/HEAD/contracts/core/PriceFeed.sol -------------------------------------------------------------------------------- /contracts/core/SortedTroves.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Bima-Labs/bima-v1-core/HEAD/contracts/core/SortedTroves.sol -------------------------------------------------------------------------------- /contracts/core/StabilityPool.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Bima-Labs/bima-v1-core/HEAD/contracts/core/StabilityPool.sol -------------------------------------------------------------------------------- /contracts/core/TroveManager.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Bima-Labs/bima-v1-core/HEAD/contracts/core/TroveManager.sol -------------------------------------------------------------------------------- /contracts/core/helpers/MultiCollateralHintHelpers.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Bima-Labs/bima-v1-core/HEAD/contracts/core/helpers/MultiCollateralHintHelpers.sol -------------------------------------------------------------------------------- /contracts/core/helpers/MultiTroveGetter.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Bima-Labs/bima-v1-core/HEAD/contracts/core/helpers/MultiTroveGetter.sol -------------------------------------------------------------------------------- /contracts/core/helpers/TroveManagerGetters.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Bima-Labs/bima-v1-core/HEAD/contracts/core/helpers/TroveManagerGetters.sol -------------------------------------------------------------------------------- /contracts/dao/AdminVoting.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Bima-Labs/bima-v1-core/HEAD/contracts/dao/AdminVoting.sol -------------------------------------------------------------------------------- /contracts/dao/AirdropDistributor.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Bima-Labs/bima-v1-core/HEAD/contracts/dao/AirdropDistributor.sol -------------------------------------------------------------------------------- /contracts/dao/AllocationVesting.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Bima-Labs/bima-v1-core/HEAD/contracts/dao/AllocationVesting.sol -------------------------------------------------------------------------------- /contracts/dao/BimaToken.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Bima-Labs/bima-v1-core/HEAD/contracts/dao/BimaToken.sol -------------------------------------------------------------------------------- /contracts/dao/BoostCalculator.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Bima-Labs/bima-v1-core/HEAD/contracts/dao/BoostCalculator.sol -------------------------------------------------------------------------------- /contracts/dao/EmissionSchedule.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Bima-Labs/bima-v1-core/HEAD/contracts/dao/EmissionSchedule.sol -------------------------------------------------------------------------------- /contracts/dao/FeeReceiver.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Bima-Labs/bima-v1-core/HEAD/contracts/dao/FeeReceiver.sol -------------------------------------------------------------------------------- /contracts/dao/IncentiveVoting.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Bima-Labs/bima-v1-core/HEAD/contracts/dao/IncentiveVoting.sol -------------------------------------------------------------------------------- /contracts/dao/InterimAdmin.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Bima-Labs/bima-v1-core/HEAD/contracts/dao/InterimAdmin.sol -------------------------------------------------------------------------------- /contracts/dao/TokenLocker.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Bima-Labs/bima-v1-core/HEAD/contracts/dao/TokenLocker.sol -------------------------------------------------------------------------------- /contracts/dao/Vault.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Bima-Labs/bima-v1-core/HEAD/contracts/dao/Vault.sol -------------------------------------------------------------------------------- /contracts/dependencies/BimaBase.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Bima-Labs/bima-v1-core/HEAD/contracts/dependencies/BimaBase.sol -------------------------------------------------------------------------------- /contracts/dependencies/BimaMath.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Bima-Labs/bima-v1-core/HEAD/contracts/dependencies/BimaMath.sol -------------------------------------------------------------------------------- /contracts/dependencies/BimaOwnable.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Bima-Labs/bima-v1-core/HEAD/contracts/dependencies/BimaOwnable.sol -------------------------------------------------------------------------------- /contracts/dependencies/Constants.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Bima-Labs/bima-v1-core/HEAD/contracts/dependencies/Constants.sol -------------------------------------------------------------------------------- /contracts/dependencies/DelegatedOps.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Bima-Labs/bima-v1-core/HEAD/contracts/dependencies/DelegatedOps.sol -------------------------------------------------------------------------------- /contracts/dependencies/SystemStart.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Bima-Labs/bima-v1-core/HEAD/contracts/dependencies/SystemStart.sol -------------------------------------------------------------------------------- /contracts/interfaces/IAggregatorV3Interface.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Bima-Labs/bima-v1-core/HEAD/contracts/interfaces/IAggregatorV3Interface.sol -------------------------------------------------------------------------------- /contracts/interfaces/IBimaBase.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Bima-Labs/bima-v1-core/HEAD/contracts/interfaces/IBimaBase.sol -------------------------------------------------------------------------------- /contracts/interfaces/IBimaCore.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Bima-Labs/bima-v1-core/HEAD/contracts/interfaces/IBimaCore.sol -------------------------------------------------------------------------------- /contracts/interfaces/IBimaOwnable.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Bima-Labs/bima-v1-core/HEAD/contracts/interfaces/IBimaOwnable.sol -------------------------------------------------------------------------------- /contracts/interfaces/IBimaPSM.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Bima-Labs/bima-v1-core/HEAD/contracts/interfaces/IBimaPSM.sol -------------------------------------------------------------------------------- /contracts/interfaces/IBimaToken.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Bima-Labs/bima-v1-core/HEAD/contracts/interfaces/IBimaToken.sol -------------------------------------------------------------------------------- /contracts/interfaces/IBoostCalculator.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Bima-Labs/bima-v1-core/HEAD/contracts/interfaces/IBoostCalculator.sol -------------------------------------------------------------------------------- /contracts/interfaces/IBoostDelegate.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Bima-Labs/bima-v1-core/HEAD/contracts/interfaces/IBoostDelegate.sol -------------------------------------------------------------------------------- /contracts/interfaces/IBorrowerOperations.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Bima-Labs/bima-v1-core/HEAD/contracts/interfaces/IBorrowerOperations.sol -------------------------------------------------------------------------------- /contracts/interfaces/ICurveProxy.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Bima-Labs/bima-v1-core/HEAD/contracts/interfaces/ICurveProxy.sol -------------------------------------------------------------------------------- /contracts/interfaces/IDebtToken.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Bima-Labs/bima-v1-core/HEAD/contracts/interfaces/IDebtToken.sol -------------------------------------------------------------------------------- /contracts/interfaces/IDelegatedOps.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Bima-Labs/bima-v1-core/HEAD/contracts/interfaces/IDelegatedOps.sol -------------------------------------------------------------------------------- /contracts/interfaces/IERC2612.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Bima-Labs/bima-v1-core/HEAD/contracts/interfaces/IERC2612.sol -------------------------------------------------------------------------------- /contracts/interfaces/IEmissionReceiver.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Bima-Labs/bima-v1-core/HEAD/contracts/interfaces/IEmissionReceiver.sol -------------------------------------------------------------------------------- /contracts/interfaces/IEmissionSchedule.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Bima-Labs/bima-v1-core/HEAD/contracts/interfaces/IEmissionSchedule.sol -------------------------------------------------------------------------------- /contracts/interfaces/IFactory.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Bima-Labs/bima-v1-core/HEAD/contracts/interfaces/IFactory.sol -------------------------------------------------------------------------------- /contracts/interfaces/IGaugeController.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Bima-Labs/bima-v1-core/HEAD/contracts/interfaces/IGaugeController.sol -------------------------------------------------------------------------------- /contracts/interfaces/IIncentiveVoting.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Bima-Labs/bima-v1-core/HEAD/contracts/interfaces/IIncentiveVoting.sol -------------------------------------------------------------------------------- /contracts/interfaces/ILendingVaultAdapter.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Bima-Labs/bima-v1-core/HEAD/contracts/interfaces/ILendingVaultAdapter.sol -------------------------------------------------------------------------------- /contracts/interfaces/ILiquidationManager.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Bima-Labs/bima-v1-core/HEAD/contracts/interfaces/ILiquidationManager.sol -------------------------------------------------------------------------------- /contracts/interfaces/ILiquidityGauge.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Bima-Labs/bima-v1-core/HEAD/contracts/interfaces/ILiquidityGauge.sol -------------------------------------------------------------------------------- /contracts/interfaces/IPriceFeed.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Bima-Labs/bima-v1-core/HEAD/contracts/interfaces/IPriceFeed.sol -------------------------------------------------------------------------------- /contracts/interfaces/ISortedTroves.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Bima-Labs/bima-v1-core/HEAD/contracts/interfaces/ISortedTroves.sol -------------------------------------------------------------------------------- /contracts/interfaces/IStabilityPool.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Bima-Labs/bima-v1-core/HEAD/contracts/interfaces/IStabilityPool.sol -------------------------------------------------------------------------------- /contracts/interfaces/ISystemStart.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Bima-Labs/bima-v1-core/HEAD/contracts/interfaces/ISystemStart.sol -------------------------------------------------------------------------------- /contracts/interfaces/ITokenLocker.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Bima-Labs/bima-v1-core/HEAD/contracts/interfaces/ITokenLocker.sol -------------------------------------------------------------------------------- /contracts/interfaces/ITroveManager.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Bima-Labs/bima-v1-core/HEAD/contracts/interfaces/ITroveManager.sol -------------------------------------------------------------------------------- /contracts/interfaces/IVault.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Bima-Labs/bima-v1-core/HEAD/contracts/interfaces/IVault.sol -------------------------------------------------------------------------------- /contracts/mock/BimaFaucet.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Bima-Labs/bima-v1-core/HEAD/contracts/mock/BimaFaucet.sol -------------------------------------------------------------------------------- /contracts/mock/Lock.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Bima-Labs/bima-v1-core/HEAD/contracts/mock/Lock.sol -------------------------------------------------------------------------------- /contracts/mock/MockOracle.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Bima-Labs/bima-v1-core/HEAD/contracts/mock/MockOracle.sol -------------------------------------------------------------------------------- /contracts/mock/MockVault.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Bima-Labs/bima-v1-core/HEAD/contracts/mock/MockVault.sol -------------------------------------------------------------------------------- /contracts/mock/StakedBTC.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Bima-Labs/bima-v1-core/HEAD/contracts/mock/StakedBTC.sol -------------------------------------------------------------------------------- /contracts/staking/Convex/ConvexDepositFactory.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Bima-Labs/bima-v1-core/HEAD/contracts/staking/Convex/ConvexDepositFactory.sol -------------------------------------------------------------------------------- /contracts/staking/Convex/ConvexDepositToken.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Bima-Labs/bima-v1-core/HEAD/contracts/staking/Convex/ConvexDepositToken.sol -------------------------------------------------------------------------------- /contracts/staking/Curve/CurveDepositFactory.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Bima-Labs/bima-v1-core/HEAD/contracts/staking/Curve/CurveDepositFactory.sol -------------------------------------------------------------------------------- /contracts/staking/Curve/CurveDepositToken.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Bima-Labs/bima-v1-core/HEAD/contracts/staking/Curve/CurveDepositToken.sol -------------------------------------------------------------------------------- /contracts/staking/Curve/CurveProxy.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Bima-Labs/bima-v1-core/HEAD/contracts/staking/Curve/CurveProxy.sol -------------------------------------------------------------------------------- /contracts/wrappers/BimaWrappedCollateral.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Bima-Labs/bima-v1-core/HEAD/contracts/wrappers/BimaWrappedCollateral.sol -------------------------------------------------------------------------------- /contracts/wrappers/BimaWrappedCollateralFactory.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Bima-Labs/bima-v1-core/HEAD/contracts/wrappers/BimaWrappedCollateralFactory.sol -------------------------------------------------------------------------------- /contracts/wrappers/StorkOracleWrapper.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Bima-Labs/bima-v1-core/HEAD/contracts/wrappers/StorkOracleWrapper.sol -------------------------------------------------------------------------------- /docs/mainnet.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Bima-Labs/bima-v1-core/HEAD/docs/mainnet.md -------------------------------------------------------------------------------- /docs/testnet-deployments.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Bima-Labs/bima-v1-core/HEAD/docs/testnet-deployments.md -------------------------------------------------------------------------------- /foundry.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Bima-Labs/bima-v1-core/HEAD/foundry.toml -------------------------------------------------------------------------------- /hardhat.config.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Bima-Labs/bima-v1-core/HEAD/hardhat.config.ts -------------------------------------------------------------------------------- /ignition/modules/Ecosystem.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Bima-Labs/bima-v1-core/HEAD/ignition/modules/Ecosystem.ts -------------------------------------------------------------------------------- /ignition/modules/Lock.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Bima-Labs/bima-v1-core/HEAD/ignition/modules/Lock.ts -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Bima-Labs/bima-v1-core/HEAD/package.json -------------------------------------------------------------------------------- /scripts/deployer.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Bima-Labs/bima-v1-core/HEAD/scripts/deployer.ts -------------------------------------------------------------------------------- /scripts/deployments/deployBimaBurner.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Bima-Labs/bima-v1-core/HEAD/scripts/deployments/deployBimaBurner.ts -------------------------------------------------------------------------------- /scripts/deployments/deployCore.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Bima-Labs/bima-v1-core/HEAD/scripts/deployments/deployCore.ts -------------------------------------------------------------------------------- /scripts/deployments/deployFaucet.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Bima-Labs/bima-v1-core/HEAD/scripts/deployments/deployFaucet.ts -------------------------------------------------------------------------------- /scripts/deployments/deployLendingVaultAdapter.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Bima-Labs/bima-v1-core/HEAD/scripts/deployments/deployLendingVaultAdapter.ts -------------------------------------------------------------------------------- /scripts/deployments/deployMockCollateral.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Bima-Labs/bima-v1-core/HEAD/scripts/deployments/deployMockCollateral.ts -------------------------------------------------------------------------------- /scripts/deployments/deployMockOracle.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Bima-Labs/bima-v1-core/HEAD/scripts/deployments/deployMockOracle.ts -------------------------------------------------------------------------------- /scripts/deployments/deployPSM.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Bima-Labs/bima-v1-core/HEAD/scripts/deployments/deployPSM.ts -------------------------------------------------------------------------------- /scripts/deployments/deployStorkOracleWrapper.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Bima-Labs/bima-v1-core/HEAD/scripts/deployments/deployStorkOracleWrapper.ts -------------------------------------------------------------------------------- /scripts/deployments/deployTroveManager.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Bima-Labs/bima-v1-core/HEAD/scripts/deployments/deployTroveManager.ts -------------------------------------------------------------------------------- /scripts/deployments/oftConfigReceive.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Bima-Labs/bima-v1-core/HEAD/scripts/deployments/oftConfigReceive.ts -------------------------------------------------------------------------------- /scripts/deployments/oftConfigSend.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Bima-Labs/bima-v1-core/HEAD/scripts/deployments/oftConfigSend.ts -------------------------------------------------------------------------------- /scripts/deployments/peerWhitelist.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Bima-Labs/bima-v1-core/HEAD/scripts/deployments/peerWhitelist.ts -------------------------------------------------------------------------------- /scripts/fetchData.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Bima-Labs/bima-v1-core/HEAD/scripts/fetchData.ts -------------------------------------------------------------------------------- /scripts/lol.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Bima-Labs/bima-v1-core/HEAD/scripts/lol.ts -------------------------------------------------------------------------------- /scripts/mintBUSD.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Bima-Labs/bima-v1-core/HEAD/scripts/mintBUSD.ts -------------------------------------------------------------------------------- /scripts/testMintBUSD.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Bima-Labs/bima-v1-core/HEAD/scripts/testMintBUSD.ts -------------------------------------------------------------------------------- /scripts/transferERC20.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Bima-Labs/bima-v1-core/HEAD/scripts/transferERC20.ts -------------------------------------------------------------------------------- /test/Ecosystem.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Bima-Labs/bima-v1-core/HEAD/test/Ecosystem.ts -------------------------------------------------------------------------------- /test/Faucet.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Bima-Labs/bima-v1-core/HEAD/test/Faucet.test.ts -------------------------------------------------------------------------------- /test/Lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Bima-Labs/bima-v1-core/HEAD/test/Lock -------------------------------------------------------------------------------- /test/TestMintBUSD: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Bima-Labs/bima-v1-core/HEAD/test/TestMintBUSD -------------------------------------------------------------------------------- /test/foundry/BimaPSM/Mint.t.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Bima-Labs/bima-v1-core/HEAD/test/foundry/BimaPSM/Mint.t.sol -------------------------------------------------------------------------------- /test/foundry/BimaPSM/OwnerFunctions.t.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Bima-Labs/bima-v1-core/HEAD/test/foundry/BimaPSM/OwnerFunctions.t.sol -------------------------------------------------------------------------------- /test/foundry/BimaPSM/PSMTestSetup.t.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Bima-Labs/bima-v1-core/HEAD/test/foundry/BimaPSM/PSMTestSetup.t.sol -------------------------------------------------------------------------------- /test/foundry/BimaPSM/Redeem.t.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Bima-Labs/bima-v1-core/HEAD/test/foundry/BimaPSM/Redeem.t.sol -------------------------------------------------------------------------------- /test/foundry/BimaPSM/ViewFunctions.t.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Bima-Labs/bima-v1-core/HEAD/test/foundry/BimaPSM/ViewFunctions.t.sol -------------------------------------------------------------------------------- /test/foundry/TestSetup.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Bima-Labs/bima-v1-core/HEAD/test/foundry/TestSetup.sol -------------------------------------------------------------------------------- /test/foundry/TroveManagerSanity.t.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Bima-Labs/bima-v1-core/HEAD/test/foundry/TroveManagerSanity.t.sol -------------------------------------------------------------------------------- /test/foundry/adapters/LendingVaultAdapter.t.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Bima-Labs/bima-v1-core/HEAD/test/foundry/adapters/LendingVaultAdapter.t.sol -------------------------------------------------------------------------------- /test/foundry/core/BimaCoreTest.t.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Bima-Labs/bima-v1-core/HEAD/test/foundry/core/BimaCoreTest.t.sol -------------------------------------------------------------------------------- /test/foundry/core/BorrowerOperationsTest.t.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Bima-Labs/bima-v1-core/HEAD/test/foundry/core/BorrowerOperationsTest.t.sol -------------------------------------------------------------------------------- /test/foundry/core/DebtTokenTest.t.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Bima-Labs/bima-v1-core/HEAD/test/foundry/core/DebtTokenTest.t.sol -------------------------------------------------------------------------------- /test/foundry/core/FactoryTest.t.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Bima-Labs/bima-v1-core/HEAD/test/foundry/core/FactoryTest.t.sol -------------------------------------------------------------------------------- /test/foundry/core/LiquidationManagerTest.t.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Bima-Labs/bima-v1-core/HEAD/test/foundry/core/LiquidationManagerTest.t.sol -------------------------------------------------------------------------------- /test/foundry/core/PriceFeedTest.t.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Bima-Labs/bima-v1-core/HEAD/test/foundry/core/PriceFeedTest.t.sol -------------------------------------------------------------------------------- /test/foundry/core/StabilityPoolTest.t.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Bima-Labs/bima-v1-core/HEAD/test/foundry/core/StabilityPoolTest.t.sol -------------------------------------------------------------------------------- /test/foundry/dao/AdminVotingTest.t.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Bima-Labs/bima-v1-core/HEAD/test/foundry/dao/AdminVotingTest.t.sol -------------------------------------------------------------------------------- /test/foundry/dao/AllocationVestingTest.t.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Bima-Labs/bima-v1-core/HEAD/test/foundry/dao/AllocationVestingTest.t.sol -------------------------------------------------------------------------------- /test/foundry/dao/EmissionScheduleTest.t.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Bima-Labs/bima-v1-core/HEAD/test/foundry/dao/EmissionScheduleTest.t.sol -------------------------------------------------------------------------------- /test/foundry/dao/InterimAdminTest.t.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Bima-Labs/bima-v1-core/HEAD/test/foundry/dao/InterimAdminTest.t.sol -------------------------------------------------------------------------------- /test/foundry/dao/TokenLockerTest.t.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Bima-Labs/bima-v1-core/HEAD/test/foundry/dao/TokenLockerTest.t.sol -------------------------------------------------------------------------------- /test/foundry/dao/VaultTest.t.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Bima-Labs/bima-v1-core/HEAD/test/foundry/dao/VaultTest.t.sol -------------------------------------------------------------------------------- /test/foundry/dependencies/BimaMathTest.t.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Bima-Labs/bima-v1-core/HEAD/test/foundry/dependencies/BimaMathTest.t.sol -------------------------------------------------------------------------------- /test/foundry/poc.t.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Bima-Labs/bima-v1-core/HEAD/test/foundry/poc.t.sol -------------------------------------------------------------------------------- /test/foundry/wrappers/StorkOracleWrapper.t.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Bima-Labs/bima-v1-core/HEAD/test/foundry/wrappers/StorkOracleWrapper.t.sol -------------------------------------------------------------------------------- /test/foundry/wrappers/StorkOracleWrapperMocked.t.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Bima-Labs/bima-v1-core/HEAD/test/foundry/wrappers/StorkOracleWrapperMocked.t.sol -------------------------------------------------------------------------------- /tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Bima-Labs/bima-v1-core/HEAD/tsconfig.json --------------------------------------------------------------------------------