<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>$OGN $OGV Archives - Smart Liquidity Research</title>
	<atom:link href="https://smartliquidity.info/tag/ogn-ogv/feed/" rel="self" type="application/rss+xml" />
	<link>https://smartliquidity.info/tag/ogn-ogv/</link>
	<description>Crypto News &#38; Data Space</description>
	<lastBuildDate>Wed, 06 Jul 2022 12:40:16 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=7.0.4</generator>

<image>
	<url>https://smartliquidity.info/wp-content/uploads/2021/03/cropped-512-1-1-32x32.png</url>
	<title>$OGN $OGV Archives - Smart Liquidity Research</title>
	<link>https://smartliquidity.info/tag/ogn-ogv/</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>Origin Governance Audit</title>
		<link>https://smartliquidity.info/2022/07/06/origin-governance-audit/</link>
		
		<dc:creator><![CDATA[Mische Martinete]]></dc:creator>
		<pubDate>Wed, 06 Jul 2022 12:21:22 +0000</pubDate>
				<category><![CDATA[Smart Crypto News]]></category>
		<category><![CDATA[$OGN $OGV]]></category>
		<guid isPermaLink="false">https://smartliquidity.info/?p=72341</guid>

					<description><![CDATA[<p>Origin governance audit was conducted by OpenZeppelin. The OpenZeppelin team audited a governance system for OriginProtocol. The contracts allow users to stake their tokens to receive voting power and be rewarded with additional OGV tokens. The system enables users to participate in the governance of the Origin Protocol by staking their OGV tokens, allowing users [&#8230;]</p>
<p>The post <a href="https://smartliquidity.info/2022/07/06/origin-governance-audit/">Origin Governance Audit</a> appeared first on <a href="https://smartliquidity.info">Smart Liquidity Research</a>.</p>
]]></description>
										<content:encoded><![CDATA[<h3><strong><em><a href="https://www.originprotocol.com/en/">Origin</a> governance audit was conducted by OpenZeppelin. The OpenZeppelin team audited a governance system for <a href="https://www.openzeppelin.com/">OriginProtocol</a>. The contracts allow users to stake their tokens to receive voting power and be rewarded with additional OGV tokens.</em></strong></h3>
<p>The system enables users to participate in the governance of the Origin Protocol by staking their OGV tokens, allowing users to earn more OGV as a staking reward. Furthermore, the staking contract <strong>OgvStaking</strong> allows OGV governance tokens to be staked to obtain non-transferable <strong>ERC20Votes</strong>-based tokens called OGVe which can participate in a GovernorBravo—compatible governance vote.</p>
<p>The minimum and maximum lockup periods are 7 and 1461 days, respectively. In addition, each staker earns OGV tokens at a pre-configured daily total rate set per time interval and emitted from the RewardSource contract. The OGVe tokens are awarded based on a constant inflation factor of 80% per year in relation to the end of the staking lockup period.</p>
<h3 id="security-considerations"><strong>Security Considerations</strong></h3>
<ul>
<li>Due to an initial voting delay of 1 block in the governance contract, we assume a delay between the deployment of OgvStaking and the transfer of assets or privileges to Governance, such that there is at least sufficient time for stakers to have received and delegated their voting shares before the governance contract becomes active. Further, we assume the cancellation of all proposals in the timelock queue directly prior to the transfer of assets or privileges to Governance prevents the execution of proposals that have been passed before the completion of the voting shares distribution.</li>
<li>Based on the disabled transfer functionality OGVe and the minimum staking duration of 7 days, flash-loan-based governance attacks are mitigated.</li>
<li>Due to a lack of external calls outside of the contract ecosystem, the functions within OgvStaking appear inherently safe against reentrancy. However, the OGV token is based on an upgradable proxy. A future upgrade introducing transfer hooks with user-controllable data could render the thecollectRewards function vulnerable to reentrancy.</li>
<li>The PRBMthUD60x18 contract of the paulrberg/prb-math library is assumed to operate correctly if all operands and results can be expressed as a number with a 60-digit integer field and an 18-digit fractional field.</li>
</ul>
<h4 style="text-align: center;"><strong>AUDIT FINDINGS</strong></h4>
<h6 id="extending-the-staking-duration-discards-rewards"><strong>Extending the staking duration discards rewards</strong></h6>
<p>In the OgvStaking contract, updating a user’s rewards is a two-step process. First, the internal function<strong> _collect rewards</strong> must be called, which updates the accumulated per share rewards. For all users and then computes and transfers an individual user’s total outstanding rewards.</p>
<p>Moreover, the computation of a user’s outstanding rewards uses the mapping<strong> rewardDebt</strong> for internal bookkeeping. Because<strong> rewardDebt</strong> contains a user’s debt in absolute terms. It can only be updated as a second step outside of the <strong> _collectReward function.</strong> Additionally, after a potential change of the user’s stake has been accounted for. In effect, user rewards can only be computed correctly if a call to<strong> _collectRewards</strong> is jointly used with an update of<strong> rewardDebt</strong></p>
<p>The function <strong>extends </strong>only performs an update on <strong>rewardDebt</strong> without a prior call to the  <strong>_collectReward function</strong><strong>.</strong> Hence, it always discards the rewards earned by a user instead of paying them out.</p>
<p><strong>ABOUT OpenZeppelin<br />
OpenZeppelin </strong>provides security products to build, automate, and operate decentralized applications. They also protect leading organizations by performing security audits on their systems and products.<strong><br />
</strong></p>
<p><strong><a href="https://www.openzeppelin.com/">Website</a> | <a href="https://twitter.com/OpenZeppelin">Twitter</a></strong></p>
<p><strong>ABOUT Origin Protocol<br />
Origin’s mission </strong>is to bring non-fungible tokens (NFTs) and decentralized finance (DeFi) to the masses.<strong><br />
</strong></p>
<p><strong><a href="https://www.originprotocol.com/en/">Website</a> | <a href="https://twitter.com/OriginProtocol">Twitter</a></strong></p>
<p><strong>RESOURCES</strong><br />
<a href="https://blog.openzeppelin.com/origin-governance-audit/#system-overview"><strong>OpenZeppelin</strong></a></p>
<p>The post <a href="https://smartliquidity.info/2022/07/06/origin-governance-audit/">Origin Governance Audit</a> appeared first on <a href="https://smartliquidity.info">Smart Liquidity Research</a>.</p>
]]></content:encoded>
					
		
		
			</item>
	</channel>
</rss>
