@rev-net/core-v6 0.0.77 → 0.0.78

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/package.json +10 -10
  2. package/src/REVLoans.sol +2 -3
package/package.json CHANGED
@@ -1,10 +1,10 @@
1
1
  {
2
2
  "name": "@rev-net/core-v6",
3
- "version": "0.0.77",
3
+ "version": "0.0.78",
4
4
  "license": "MIT",
5
5
  "repository": {
6
6
  "type": "git",
7
- "url": "git+https://github.com/rev-net/revnet-core-v6"
7
+ "url": "git+https://github.com/rev-net/revnet-core-v6.git"
8
8
  },
9
9
  "files": [
10
10
  "foundry.toml",
@@ -24,19 +24,19 @@
24
24
  "artifacts": "source ./.env && npx sphinx artifacts --org-id 'ea165b21-7cdc-4d7b-be59-ecdd4c26bee4' --project-name 'revnet-core-v6'"
25
25
  },
26
26
  "dependencies": {
27
- "@bananapus/721-hook-v6": "^0.0.57",
28
- "@bananapus/buyback-hook-v6": "^0.0.55",
29
- "@bananapus/core-v6": "^0.0.68",
30
- "@bananapus/ownable-v6": "^0.0.31",
27
+ "@bananapus/721-hook-v6": "^0.0.59",
28
+ "@bananapus/buyback-hook-v6": "^0.0.58",
29
+ "@bananapus/core-v6": "^0.0.72",
30
+ "@bananapus/ownable-v6": "^0.0.32",
31
31
  "@bananapus/permission-ids-v6": "^0.0.27",
32
- "@bananapus/router-terminal-v6": "^0.0.52",
33
- "@bananapus/suckers-v6": "^0.0.58",
34
- "@croptop/core-v6": "^0.0.59",
32
+ "@bananapus/router-terminal-v6": "^0.0.55",
33
+ "@bananapus/suckers-v6": "^0.0.60",
34
+ "@croptop/core-v6": "^0.0.60",
35
35
  "@openzeppelin/contracts": "5.6.1",
36
36
  "@uniswap/permit2": "github:Uniswap/permit2#cc56ad0f3439c502c246fc5cfcc3db92bb8b7219"
37
37
  },
38
38
  "devDependencies": {
39
- "@bananapus/address-registry-v6": "0.0.28",
39
+ "@bananapus/address-registry-v6": "^0.0.29",
40
40
  "@sphinx-labs/plugins": "0.33.3",
41
41
  "@uniswap/v4-core": "1.0.2"
42
42
  }
package/src/REVLoans.sol CHANGED
@@ -1309,9 +1309,8 @@ contract REVLoans is ERC721, ERC2771Context, JBPermissioned, Ownable, IREVLoans
1309
1309
  JBAccountingContext memory context = TERMINAL.accountingContextForTokenOf({projectId: revnetId, token: token});
1310
1310
  if (context.token != token) revert REVLoans_InvalidAccountingContext({revnetId: revnetId, token: token});
1311
1311
 
1312
- // Make sure the prepaid fee percent is between `MIN_PREPAID_FEE_PERCENT` and `MAX_PREPAID_FEE_PERCENT`. Meaning
1313
- // an 16 year loan can be paid upfront with a
1314
- // payment of 50% of the borrowed assets, the cheapest possible rate.
1312
+ // Make sure the prepaid fee percent is between `MIN_PREPAID_FEE_PERCENT` and `MAX_PREPAID_FEE_PERCENT`.
1313
+ // The maximum prepaid fee covers the full 10-year liquidation duration with a 50% payment.
1315
1314
  if (prepaidFeePercent < MIN_PREPAID_FEE_PERCENT || prepaidFeePercent > MAX_PREPAID_FEE_PERCENT) {
1316
1315
  revert REVLoans_InvalidPrepaidFeePercent({
1317
1316
  prepaidFeePercent: prepaidFeePercent, min: MIN_PREPAID_FEE_PERCENT, max: MAX_PREPAID_FEE_PERCENT