-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use project composition to calculate fees
Instead of calculating fees at the vintage level we should be calculating fees at the project level. In order to achieve that, use the newly implemented pool function `totalPerProjectTCO2Supply` to determine how many credits of a project are found in a pool.
- Loading branch information
1 parent
0a5cc94
commit b90d5c1
Showing
8 changed files
with
144 additions
and
81 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
// SPDX-FileCopyrightText: 2024 Neutral Labs Inc. | ||
// | ||
// SPDX-License-Identifier: UNLICENSED | ||
|
||
// If you encounter a vulnerability or an issue, please contact <info@neutralx.com> | ||
pragma solidity ^0.8.13; | ||
|
||
struct VintageData { | ||
/// @dev A human-readable string which differentiates this from other vintages in | ||
/// the same project, and helps build the corresponding TCO2 name and symbol. | ||
string name; | ||
uint64 startTime; // UNIX timestamp | ||
uint64 endTime; // UNIX timestamp | ||
uint256 projectTokenId; | ||
uint64 totalVintageQuantity; | ||
bool isCorsiaCompliant; | ||
bool isCCPcompliant; | ||
string coBenefits; | ||
string correspAdjustment; | ||
string additionalCertification; | ||
string uri; | ||
string registry; | ||
} | ||
|
||
/// @title ITCO2 | ||
/// @notice This interface defines methods exposed by the TCO2 | ||
interface ITCO2 { | ||
/// @notice Get the vintage data for the TCO2 | ||
/// @return vintageData Vintage data of the TCO2 | ||
function getVintageData() external view returns (VintageData memory vintageData); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.