Skip to content

Commit

Permalink
change the user param of yield unstake & repay event
Browse files Browse the repository at this point in the history
  • Loading branch information
thorseldon committed Sep 11, 2024
1 parent de68386 commit fa4807c
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 11 deletions.
15 changes: 8 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
```
###### ###### # #######
# # ###### # # ##### # # # # # #
# # # ## # # # # # # # # #
###### ##### # # # # # # # # # # #
# # # # # # # # # # ####### # #
# # # # ## # # # # # # # #
###### ###### # # ##### ###### # # #######
###### ###### # #######
# # ###### # # ##### # # # # # #
# # # ## # # # # # # # # #
###### ##### # # # # # # # # # # #
# # # # # # # # # # ####### # #
# # # # ## # # # # # # # #
###### ###### # # ##### ###### # # #######
```

# BendDAO Protocol V2
Expand Down Expand Up @@ -39,6 +39,7 @@ Leverage users can use ERC721 as collaterals to borrow assets to create leverage
---

## Audits

All audits are stored in the [audits](./audits/) folder and [online](https://docs.benddao.xyz/portal/v/v2/security-and-risks/audits).

---
Expand Down
2 changes: 1 addition & 1 deletion audits/2024-09-03-BendDAO-V2-Code4rena-Report.md
Original file line number Diff line number Diff line change
@@ -1 +1 @@
[Report URL](https://code4rena.com/reports/2024-07-benddao)
[Report URL](https://code4rena.com/reports/2024-07-benddao)
7 changes: 6 additions & 1 deletion script/UpgradeContract.s.sol
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,12 @@ contract UpgradeContract is DeployBase {
address internal addrBendV1Migration;

function _deploy() internal virtual override {
if (block.chainid == 11155111) {
if (block.chainid == 1) {
addrYieldLido = 0x61Ae6DCE4C7Cb1b8165aE244c734f20DF56efd73;
addrYieldEtherfi = 0x529a8822416c3c4ED1B77dE570118fDf1d474639;
addrYieldSDai = 0x6FA43C1a296db746937Ac4D97Ff61409E8c530cC;
addrBendV1Migration = 0xf6EE27bb3F17E456078711D8c4b257377375D654;
} else if (block.chainid == 11155111) {
addrYieldLido = 0x59303f797B8Dd80fc3743047df63C76E44Ca7CBd;
addrYieldEtherfi = 0x3234F1047E71421Ec67A576D87eaEe1B86E8A1Ea;
addrYieldSDai = 0x7464a51fA6338A34b694b4bF4A152781fb2C4B70;
Expand Down
4 changes: 2 additions & 2 deletions src/yield/YieldStakingBase.sol
Original file line number Diff line number Diff line change
Expand Up @@ -363,7 +363,7 @@ abstract contract YieldStakingBase is Initializable, PausableUpgradeable, Reentr
accountYieldShares[address(vars.yieldAccout)] -= sd.yieldShare;
sd.yieldShare = 0;

emit Unstake(msg.sender, nft, tokenId, sd.withdrawAmount);
emit Unstake(vars.nftOwner, nft, tokenId, sd.withdrawAmount);
}

struct RepayLocalVars {
Expand Down Expand Up @@ -498,7 +498,7 @@ abstract contract YieldStakingBase is Initializable, PausableUpgradeable, Reentr

delete stakeDatas[nft][tokenId];

emit Repay(msg.sender, nft, tokenId, vars.nftDebt);
emit Repay(vars.nftOwner, nft, tokenId, vars.nftDebt);
}

/****************************************************************************/
Expand Down

0 comments on commit fa4807c

Please sign in to comment.