Skip to content

Commit 0a04ff5

Browse files
committed
test: right asset custodian
1 parent cac03b7 commit 0a04ff5

File tree

5 files changed

+4
-7
lines changed

5 files changed

+4
-7
lines changed

contracts/core/interfaces/rights/IRightsAssetCustodianVerifiable.sol

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,4 @@ interface IRightsAssetCustodianVerifiable {
1111
/// @param holder The address of the asset rights holder.
1212
/// @return True if `custodian` is valid and assigned to `holder`, false otherwise.
1313
function isCustodian(address custodian, address holder) external view returns (bool);
14-
15-
1614
}

contracts/custody/CustodianImpl.sol

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,6 @@ contract CustodianImpl is
6464
return owner();
6565
}
6666

67-
6867
/// TODO add method to return encoded multi-address. getAddress()
6968
/// @notice Returns the current distribution endpoint URL.
7069
function getEndpoint() external view returns (string memory) {

contracts/economics/Treasury.sol

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import { AccessControlledUpgradeable } from "@synaps3/core/primitives/upgradeabl
88
import { BalanceOperatorUpgradeable } from "@synaps3/core/primitives/upgradeable/BalanceOperatorUpgradeable.sol";
99

1010
import { ITreasury } from "@synaps3/core/interfaces/economics/ITreasury.sol";
11-
import { IFeesCollector } from "@synaps3/core/interfaces/economics/IFeesCollector.sol";
11+
// import { IFeesCollector } from "@synaps3/core/interfaces/economics/IFeesCollector.sol";
1212
import { FinancialOps } from "@synaps3/core/libraries/FinancialOps.sol";
1313
import { LoopOps } from "@synaps3/core/libraries/LoopOps.sol";
1414

@@ -73,6 +73,7 @@ contract Treasury is
7373
/// @param collector The address of an authorized fee collector.
7474
/// @param currency The address of the ERC20 token for which fees are being collected.
7575
function collectFees(address collector, address currency) external restricted nonReentrant {
76+
// TODO update adding amount param on disburse call
7677
// IFeesCollector feesCollector = IFeesCollector(collector);
7778
// uint256 collected = feesCollector.disburse(currency);
7879
// _sumLedgerEntry(address(this), collected, currency);

contracts/financial/AgreementSettler.sol

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ contract AgreementSettler is
107107
}
108108

109109
/// @notice Disburses funds from the contract to the treasury.
110-
/// @dev This function can only be called by the treasury.
110+
/// @dev This function can only be called by the treasury.
111111
/// It transfers to the treasury the balance of the specified currency.
112112
/// @param amount The amount of tokens to disburse.
113113
/// @param currency The address of the token to disburse tokens.
@@ -121,7 +121,6 @@ contract AgreementSettler is
121121
return amount;
122122
}
123123

124-
125124
// TODO add hook management for royalties and earning splits
126125
// TODOpotential improvement to scaling custom actions in protocol using hooks
127126
// eg: access handling for gating content. etc..

contracts/rights/RightsAssetCustodian.sol

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -264,7 +264,7 @@ contract RightsAssetCustodian is Initializable, UUPSUpgradeable, AccessControlle
264264
uint256 p = _getPriority(custodian, holder);
265265
uint256 d = _getDemand(custodian);
266266
// https://docs.openzeppelin.com/contracts/5.x/api/utils#Math-log2-uint256-
267-
// Return the log in base 2 of a positive value rounded towards zero.
267+
// Return the log in base 2 of a positive value rounded towards zero.
268268
// log2 reduces the impact of large balances
269269
// wi = pi · (di + 1) · (log2(bi) + 1)
270270
return p * (d + 1) * (b.log2() + 1);

0 commit comments

Comments
 (0)