mirror of
https://github.com/Instadapp/dsa-connectors.git
synced 2024-07-29 22:37:00 +00:00
PR remarks
This commit is contained in:
parent
a7ef817d95
commit
b4ce55ad6a
|
@ -2,24 +2,24 @@
|
||||||
pragma solidity 0.7.6;
|
pragma solidity 0.7.6;
|
||||||
|
|
||||||
contract Events {
|
contract Events {
|
||||||
event Deposit(
|
event LogDeposit(
|
||||||
address indexed userAddress,
|
address indexed userAddress,
|
||||||
address indexed token,
|
address indexed token,
|
||||||
uint256 amount,
|
uint256 amount,
|
||||||
uint256 indexed bondingShareId,
|
uint256 indexed bondingShareId,
|
||||||
uint256 lpAmount,
|
uint256 lpAmount,
|
||||||
uint256 durationWeeks,
|
uint256 durationWeeks,
|
||||||
uint256 getId,
|
uint256 getId,
|
||||||
uint256 setId
|
uint256 setId
|
||||||
);
|
);
|
||||||
event Withdraw(
|
event LogWithdraw(
|
||||||
address indexed userAddress,
|
address indexed userAddress,
|
||||||
uint256 indexed bondingShareId,
|
uint256 indexed bondingShareId,
|
||||||
uint256 lpAmount,
|
uint256 lpAmount,
|
||||||
uint256 endBlock,
|
uint256 endBlock,
|
||||||
address indexed token,
|
address indexed token,
|
||||||
uint256 amount,
|
uint256 amount,
|
||||||
uint256 getId,
|
uint256 getId,
|
||||||
uint256 setId
|
uint256 setId
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
|
@ -12,9 +12,7 @@ import { IUbiquityBondingV2, IUbiquityMetaPool, I3Pool } from "./interfaces.sol"
|
||||||
import { Helpers } from "./helpers.sol";
|
import { Helpers } from "./helpers.sol";
|
||||||
import { Events } from "./events.sol";
|
import { Events } from "./events.sol";
|
||||||
|
|
||||||
contract ConnectV2Ubiquity is Helpers, Events {
|
abstract contract UbiquityResolver is Helpers, Events {
|
||||||
string public constant name = "Ubiquity-v1";
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @dev Deposit into Ubiquity protocol
|
* @dev Deposit into Ubiquity protocol
|
||||||
* @notice 3POOL (DAI / USDC / USDT) => METAPOOL (3CRV / uAD) => uAD3CRV-f => Ubiquity BondingShare
|
* @notice 3POOL (DAI / USDC / USDT) => METAPOOL (3CRV / uAD) => uAD3CRV-f => Ubiquity BondingShare
|
||||||
|
@ -114,7 +112,7 @@ contract ConnectV2Ubiquity is Helpers, Events {
|
||||||
|
|
||||||
setUint(setId, bondingShareId);
|
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(
|
_eventParam = abi.encode(
|
||||||
address(this),
|
address(this),
|
||||||
token,
|
token,
|
||||||
|
@ -205,7 +203,7 @@ contract ConnectV2Ubiquity is Helpers, Events {
|
||||||
uint256 amount = getTokenBal(TokenInterface(token));
|
uint256 amount = getTokenBal(TokenInterface(token));
|
||||||
|
|
||||||
setUint(setId, amount);
|
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(
|
_eventParam = abi.encode(
|
||||||
address(this),
|
address(this),
|
||||||
_bondingShareId,
|
_bondingShareId,
|
||||||
|
@ -218,3 +216,7 @@ contract ConnectV2Ubiquity is Helpers, Events {
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
contract ConnectV2Ubiquity is UbiquityResolver {
|
||||||
|
string public constant name = "Ubiquity-v1";
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user