PR remarks

This commit is contained in:
zapaz.eth 2021-10-22 14:06:29 +02:00
parent a7ef817d95
commit b4ce55ad6a
2 changed files with 27 additions and 25 deletions

View File

@ -2,24 +2,24 @@
pragma solidity 0.7.6;
contract Events {
event Deposit(
address indexed userAddress,
address indexed token,
uint256 amount,
uint256 indexed bondingShareId,
uint256 lpAmount,
uint256 durationWeeks,
uint256 getId,
uint256 setId
);
event Withdraw(
address indexed userAddress,
uint256 indexed bondingShareId,
uint256 lpAmount,
uint256 endBlock,
address indexed token,
uint256 amount,
uint256 getId,
uint256 setId
);
event LogDeposit(
address indexed userAddress,
address indexed token,
uint256 amount,
uint256 indexed bondingShareId,
uint256 lpAmount,
uint256 durationWeeks,
uint256 getId,
uint256 setId
);
event LogWithdraw(
address indexed userAddress,
uint256 indexed bondingShareId,
uint256 lpAmount,
uint256 endBlock,
address indexed token,
uint256 amount,
uint256 getId,
uint256 setId
);
}

View File

@ -12,9 +12,7 @@ import { IUbiquityBondingV2, IUbiquityMetaPool, I3Pool } from "./interfaces.sol"
import { Helpers } from "./helpers.sol";
import { Events } from "./events.sol";
contract ConnectV2Ubiquity is Helpers, Events {
string public constant name = "Ubiquity-v1";
abstract contract UbiquityResolver is Helpers, Events {
/**
* @dev Deposit into Ubiquity protocol
* @notice 3POOL (DAI / USDC / USDT) => METAPOOL (3CRV / uAD) => uAD3CRV-f => Ubiquity BondingShare
@ -114,7 +112,7 @@ contract ConnectV2Ubiquity is Helpers, Events {
setUint(setId, bondingShareId);
_eventName = "Deposit(address,address,uint256,uint256,uint256,uint256,uint256,uint256)";
_eventName = "LogDeposit(address,address,uint256,uint256,uint256,uint256,uint256,uint256)";
_eventParam = abi.encode(
address(this),
token,
@ -205,7 +203,7 @@ contract ConnectV2Ubiquity is Helpers, Events {
uint256 amount = getTokenBal(TokenInterface(token));
setUint(setId, amount);
_eventName = "Withdraw(address,uint256,uint256,uint256,address,uint256,uint256,uint256)";
_eventName = "LogWithdraw(address,uint256,uint256,uint256,address,uint256,uint256,uint256)";
_eventParam = abi.encode(
address(this),
_bondingShareId,
@ -218,3 +216,7 @@ contract ConnectV2Ubiquity is Helpers, Events {
);
}
}
contract ConnectV2Ubiquity is UbiquityResolver {
string public constant name = "Ubiquity-v1";
}