Skip to content

Commit

Permalink
Src: Rename VVET to WVET
Browse files Browse the repository at this point in the history
  • Loading branch information
OliverNChalk committed Jun 27, 2021
1 parent 08e9e11 commit 3a40c54
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 13 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Vexchange VET
# Wrapped VET

Vexchange VET is a fork of VVET that ensures Vexchange LPs receive their fair share of VTHO. The contracts have a `recoverToken` method that allows the `owner` to move non-VET VIP-180 tokens out of the contract. This will enable the distribution of VTHO to LPs that otherwise might have been stuck, or stolen by frontrunners via the `skim` method. Initially, the Vexchange team will be entrusted to distribute the `VTHO`, however, `owner` can always be changed to a trustless claim manager contract (more dev work than a centralized solution).
Wrapped VET is a fork of VVET that will have the benefit of ensuring Vexchange LPs receive their fair share of VTHO generated. The contracts have a `recoverToken` method that allows the `owner` to move any VIP-180 tokens out of the contract. This ability does not compramise the security of the underlying VET. The ability to move VIP-180s will enable the distribution of VTHO to LPs that otherwise might have been stuck, or stolen by frontrunners via the `skim` method. Initially, the Vexchange team will be entrusted to distribute the `VTHO`, however, `owner` can always be changed to a trustless claim manager contract (more dev work than a centralized solution).

## Deployed contract addresses
- Mainnet: Coming Soon
Expand Down
4 changes: 2 additions & 2 deletions contracts/Ownable.sol
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ contract Ownable {
* @dev Throws if called by any account other than the owner.
*/
modifier onlyOwner() {
require(owner() == msg.sender, "VexchangeV2: FORBIDDEN");
require(owner() == msg.sender, "WVET: FORBIDDEN");
_;
}

Expand All @@ -34,7 +34,7 @@ contract Ownable {
* Can only be called by the current owner.
*/
function transferOwnership(address newOwner) public onlyOwner {
require(newOwner != address(0), "VexchangeV2: ZERO_ADDRESS");
require(newOwner != address(0), "WVET: ZERO_ADDRESS");
emit OwnershipTransferred(_owner, newOwner);
_owner = newOwner;
}
Expand Down
6 changes: 3 additions & 3 deletions contracts/VVET.sol → contracts/WVET.sol
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,9 @@ interface IVIP180
function transfer(address aDestination, uint aAmount) external returns (bool);
}

contract VVET is Ownable {
string public name = "Vexchange VET";
string public symbol = "VVET";
contract WVET is Ownable {
string public name = "Wrapped VET";
string public symbol = "WVET";
uint8 public decimals = 18;

event Approval(address indexed src, address indexed guy, uint wad);
Expand Down
13 changes: 7 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,23 +10,24 @@
"rimraf": "2.6.2",
"solc": "0.5.17"
},
"name": "vexchange-vet",
"description": "Vexchange's fork of VVET (W-ETH)",
"name": "wrapped-vet",
"description": "Vexchange's fork of VVET (W-ETH), renamed to WVET",
"version": "1.0.0",
"repository": {
"type": "git",
"url": "git+https://github.com/vexchange/vexchange-vet.git"
"url": "git+https://github.com/vexchange/wrapped-vet.git"
},
"keywords": [
"vexchange",
"vexchange-vet",
"wrapped-vet",
"weth",
"vechain",
"waffle",
"smart-contract"
],
"license": "GPL-3.0",
"bugs": {
"url": "https://github.com/vexchange/vexchange-vet/issues"
"url": "https://github.com/vexchange/wrapped-vet/issues"
},
"homepage": "https://github.com/vexchange/vexchange-vet#readme"
"homepage": "https://github.com/vexchange/wrapped-vet#readme"
}

0 comments on commit 3a40c54

Please sign in to comment.